test_server_shutdown: disconnect the server before causing it to be freed

Otherwise we die with an assertion failure.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33277
This commit is contained in:
Simon McVittie 2011-01-19 17:34:10 +00:00
parent e529c4bcdb
commit a9327eba3c

View file

@ -334,6 +334,8 @@ void
test_server_shutdown (DBusLoop *loop,
DBusServer *server)
{
dbus_server_disconnect (server);
if (!dbus_server_set_watch_functions (server,
NULL, NULL, NULL,
NULL,