diff options
Diffstat (limited to 'tests/wocky-test-sasl-auth-server.c')
-rw-r--r-- | tests/wocky-test-sasl-auth-server.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/wocky-test-sasl-auth-server.c b/tests/wocky-test-sasl-auth-server.c index b5b4c76..35c8328 100644 --- a/tests/wocky-test-sasl-auth-server.c +++ b/tests/wocky-test-sasl-auth-server.c @@ -30,7 +30,7 @@ #include <gio/gio.h> #include "wocky-test-sasl-auth-server.h" - +#include "wocky-test-helper.h" #ifdef HAVE_LIBSASL2 @@ -988,9 +988,7 @@ test_sasl_auth_server_stop (TestSaslAuthServer *self) if (priv->cancellable != NULL) { - if (!g_cancellable_is_cancelled (priv->cancellable)) - g_cancellable_cancel (priv->cancellable); - + test_cancel_in_idle (priv->cancellable); g_object_unref (priv->cancellable); priv->cancellable = NULL; } |