getAppBusEvents swallows empty strings resulting from 'errors' and non actionable events
This commit is contained in:
parent
877d4880d0
commit
8e78e64603
6
lib.go
6
lib.go
|
@ -144,7 +144,11 @@ func c_GetAppBusEvent() *C.char {
|
||||||
|
|
||||||
// GetAppBusEvent blocks until an event
|
// GetAppBusEvent blocks until an event
|
||||||
func GetAppBusEvent() string {
|
func GetAppBusEvent() string {
|
||||||
return eventHandler.GetNextEvent()
|
var json = ""
|
||||||
|
for json != "" {
|
||||||
|
json = eventHandler.GetNextEvent()
|
||||||
|
}
|
||||||
|
return json
|
||||||
}
|
}
|
||||||
|
|
||||||
//export c_GetProfileRepaintEvent
|
//export c_GetProfileRepaintEvent
|
||||||
|
|
Loading…
Reference in New Issue