1
0
Fork 0

Anders GIDENSTAM: Fix send to self

This commit is contained in:
mfranz 2009-06-03 17:19:17 +00:00
parent afbca8bdcf
commit bbf1004629

View file

@ -126,9 +126,9 @@ BroadcastChannel.update = func {
if ((t - me.last_send) > me.SEND_TIME) {
if (size(me.send_buf) > 0) {
me.send_node.setValue(me.send_buf[0]);
if (me.send_to_self) me.process_msg(props.globals, me.send_buf[0]);
me.send_buf = subvec(me.send_buf, 1);
me.last_send = t;
if (me.send_to_self) me.process_msg(props.globals, msg);
} else {
# Nothing new to send. Reset the send property to save bandwidth.
me.send_node.setValue("");