Merge branch 'master' of kenny.imendio.com:/var/git/public/projects/loudmouth into...
authorMikael Hallendal <micke@imendio.com>
Sat, 24 Feb 2007 02:26:02 +0000 (03:26 +0100)
committerMikael Hallendal <micke@imendio.com>
Sat, 24 Feb 2007 02:26:02 +0000 (03:26 +0100)
loudmouth/lm-connection.c

index 0a1e387548eb7cc44bbed017f28588de59ee0d44..e0bd53d6323a9cb3025dd277a74d056065aa008b 100644 (file)
@@ -1135,6 +1135,10 @@ connection_in_event (GIOChannel   *source,
        gsize    bytes_read;
        gboolean hangup;
 
+       if (connection->io_channel == NULL) {
+               return FALSE;
+       }
+
        while (connection_read_incoming (connection, buf, IN_BUFFER_SIZE,
                                         &bytes_read, &hangup)) {
                g_log (LM_LOG_DOMAIN, LM_LOG_LEVEL_NET, "\nRECV [%d]:\n",