Merge branch 'collectd-4.2'
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Wed, 23 Jan 2008 19:54:10 +0000 (20:54 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Wed, 23 Jan 2008 19:54:10 +0000 (20:54 +0100)
1  2 
src/network.c

diff --cc src/network.c
@@@ -1485,12 -1413,9 +1566,12 @@@ static int network_init (void
  
        /* setup socket(s) and so on */
        if (sending_sockets != NULL)
 +      {
                plugin_register_write ("network", network_write);
 +              plugin_register_notification ("network", network_notification);
 +      }
  
-       if ((listen_sockets_num != 0) && (listen_thread == 0))
+       if ((listen_sockets_num != 0) && (receive_thread_id == 0))
        {
                int status;