SoupSessionAsync: don't queue idles from dispose()
authorDan Winship <danw@gnome.org>
Tue, 14 Feb 2012 03:05:43 +0000 (22:05 -0500)
committerDan Winship <danw@gnome.org>
Tue, 14 Feb 2012 03:05:43 +0000 (22:05 -0500)
commit64bdfe9eb24e219b071a06ae03cec49f15b1b71b
treef493a4182aa9d8b9b05d625b5bd7a9114a9eb3a5
parent1c3878284295d3d650a4b7af2d54d61b36b9668f
SoupSessionAsync: don't queue idles from dispose()

SoupSession does a soup_session_abort() from dispose(), which had the
effect in SoupSessionAsync of queueing an idle (to check if new
messages could be sent now that old connections had been closed). This
causes problems if the session was disposed from a thread other than
the one that its GMainContext is running in, which is weird, and also
incompatible with some garbage-collected runtimes. So fix that.

https://bugzilla.gnome.org/show_bug.cgi?id=667364
libsoup/soup-session-async.c
tests/misc-test.c