From: Thadeu Lima de Souza Cascardo Date: Thu, 2 Jul 2009 23:05:23 +0000 (-0300) Subject: Remove watch before closing connection. X-Git-Tag: v0.1.3~60 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Frnetproxy.git;a=commitdiff_plain;h=7dd51d1e79948d7ac45d4d15171d0b253d3cf371 Remove watch before closing connection. --- diff --git a/hcconn.c b/hcconn.c index adfa4c4..2297c94 100644 --- a/hcconn.c +++ b/hcconn.c @@ -135,8 +135,8 @@ hc_conn_write (HCConn *conn, char *buffer, size_t len) void hc_conn_close (HCConn *conn) { - conn->close (conn->layer); g_source_remove (conn->watch); + conn->close (conn->layer); g_io_channel_unref (conn->channel); g_slice_free (HCConn, conn); }