actually receive multiple different kinds of events

Geoffrey Goodell goodell at cassandra.eecs.harvard.edu
Fri Mar 25 02:03:22 UTC 2005


see attached
-------------- next part --------------
--- 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);
     }
   }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.torproject.org/pipermail/tor-dev/attachments/20050324/1d7ae23e/attachment.pgp>


More information about the tor-dev mailing list