Fix is_connected.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 16 Jun 2009 22:54:01 +0000 (00:54 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 16 Jun 2009 22:54:01 +0000 (00:54 +0200)
libirc/transport_ioc.c

index ea702ae..a04d087 100644 (file)
@@ -300,7 +300,7 @@ static gboolean irc_transport_iochannel_is_connected(void *data)
 {
        struct irc_transport_data_iochannel *backend_data = (struct irc_transport_data_iochannel *)data;
 
-       return backend_data->incoming != NULL;
+       return (backend_data->incoming != NULL && !backend_data->pending_disconnect);
 }
 
 static const struct irc_transport_ops irc_transport_iochannel_ops = {