diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2012-11-25 11:47:23 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2012-11-25 11:47:23 +0000 |
commit | 898c08e1d8abde8cc842ae619281b6cf4c1b7fdd (patch) | |
tree | 81d901160aa58982ee3ecb1f386610ecf11c8411 /lib/http_client.c | |
parent | e9bdfbc7906507289a5ce95fb1704e7cdbbb564c (diff) |
Clean up streaming HTTP event handler, which should fix crash-bugs with GLib.
Forgot to do this so far because my libevent code let me get away with it.
Diffstat (limited to 'lib/http_client.c')
-rw-r--r-- | lib/http_client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/http_client.c b/lib/http_client.c index 35d8081f..e368c0dc 100644 --- a/lib/http_client.c +++ b/lib/http_client.c @@ -590,6 +590,9 @@ void http_close( struct http_request *req ) if( !req ) return; + if( req->inpa > 0 ) + b_event_remove( req->inpa ); + if( req->ssl ) ssl_disconnect( req->ssl ); else |