From e55e182912d75ee81943163f892a2ed4fcf2ab67 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Mon, 8 Mar 2021 16:44:00 -0800 Subject: [PATCH] getAppBusEvents swallows empty strings resulting from 'errors' and non actionable events --- lib.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib.go b/lib.go index 213a02c..352f6b0 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