SoupSessionAsync: fix the GMainContext tracking
authorDan Winship <danw@gnome.org>
Wed, 11 Apr 2012 17:17:15 +0000 (13:17 -0400)
committerDan Winship <danw@gnome.org>
Tue, 17 Apr 2012 22:13:04 +0000 (18:13 -0400)
commitdc498831f5fb9740047ac9bfe023809a1b801a5c
tree0ffbf7620d78b484dd22ad2c306c048dc4e70a7c
parent917869e8b33cd5aa4a684cc1e08a28c6da04b221
SoupSessionAsync: fix the GMainContext tracking

Using (non-reffed) GMainContexts as hash keys can mess up when a
context gets freed and then a new one is created at the same location
(in which case the session might think it has an idle_run_queue
queued, but it doesn't really). Reorganize the way this works to avoid
that problem.
libsoup/soup-session-async.c