summaryrefslogtreecommitdiff
path: root/lib/NanoEvent.ck
diff options
context:
space:
mode:
Diffstat (limited to 'lib/NanoEvent.ck')
-rw-r--r--lib/NanoEvent.ck9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/NanoEvent.ck b/lib/NanoEvent.ck
index 2bf6378..9c501aa 100644
--- a/lib/NanoEvent.ck
+++ b/lib/NanoEvent.ck
@@ -64,8 +64,15 @@ public class NanoEvent extends GenEvent {
msg.data3/127.0 => value;
if (cmd == 0xB0 &&
- (wantScene == "" || scene == wantScene))
+ (wantScene == "" || scene == wantScene)) {
broadcast();
+ /*
+ * ensure that shreds waiting on the event
+ * process it before it is overwritten
+ * by the next message in the queue
+ */
+ me.yield();
+ }
}
}
/* not reached */