tests: GSocketService cleanup in test_bind_already_in_use
authorDavid Svensson Fors <davidsf@axis.com>
Wed, 20 Mar 2013 10:28:11 +0000 (11:28 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 28 Mar 2013 12:48:46 +0000 (12:48 +0000)
Use g_socket_service_stop so the rtspserver test stops listening for
incoming connections in test_bind_already_in_use.

https://bugzilla.gnome.org/show_bug.cgi?id=696541

tests/check/gst/rtspserver.c

index 1c35a22..3377a80 100644 (file)
@@ -877,7 +877,7 @@ GST_START_TEST (test_bind_already_in_use)
 
   /* cleanup */
   g_object_unref (serv);
-  g_socket_listener_close (G_SOCKET_LISTENER (service));
+  g_socket_service_stop (service);
   g_object_unref (service);
 }