[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

actually receive multiple different kinds of events



see attached
--- control.c.orig	2005-03-24 20:58:17.000000000 -0500
+++ control.c	2005-03-24 20:59:16.000000000 -0500
@@ -174,7 +174,6 @@
   connection_t **conns;
   int n_conns, i;
 
-  global_event_mask = 0;
   get_connection_array(&conns, &n_conns);
   for (i = 0; i < n_conns; ++i) {
     if (conns[i]->type == CONN_TYPE_CONTROL &&
@@ -267,7 +266,7 @@
   for (i = 0; i < n_conns; ++i) {
     if (conns[i]->type == CONN_TYPE_CONTROL &&
         conns[i]->state == CONTROL_CONN_STATE_OPEN &&
-        conns[i]->event_mask & (1<<event)) {
+        global_event_mask & (1<<event)) {
       send_control_message(conns[i], CONTROL_CMD_EVENT, buflen, buf);
     }
   }

Attachment: signature.asc
Description: Digital signature