getAppBusEvents swallows empty strings resulting from 'errors' and non actionable events

This commit is contained in:
Dan Ballard 2021-03-08 16:44:00 -08:00
parent 877d4880d0
commit 8e78e64603
1 changed files with 5 additions and 1 deletions

6
lib.go
View File

@ -144,7 +144,11 @@ func c_GetAppBusEvent() *C.char {
// GetAppBusEvent blocks until an event
func GetAppBusEvent() string {
return eventHandler.GetNextEvent()
var json = ""
for json != "" {
json = eventHandler.GetNextEvent()
}
return json
}
//export c_GetProfileRepaintEvent