diff --git a/lib.go b/lib.go index 213a02c..35379cf 100644 --- a/lib.go +++ b/lib.go @@ -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