mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-20 02:42:50 +01:00
bug fix
This commit is contained in:
@@ -214,9 +214,11 @@ func (self *DBus) ListenSignal() {
|
||||
var DBusHandler *DBus //global
|
||||
|
||||
func init() {
|
||||
DBusHandler = NewDBus()
|
||||
DBusHandler.Init()
|
||||
if DBusHandler == nil {
|
||||
DBusHandler = NewDBus()
|
||||
DBusHandler.Init()
|
||||
|
||||
go DBusHandler.ListenSignal()
|
||||
go DBusHandler.ListenSignal()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user