+2003-03-21 Joe Shaw <joe@ximian.com>
+
+ * soup-server.c: Use non-deprecated g_main_loop_* calls
+ throughout.
+ (soup_server_unref): Don't unref the main loop if it's NULL.
+ Fixes a glib warning.
+
2003-03-18 Dan Winship <danw@ximian.com>
* configure.in: comment out NSS checks. The NSS code doesn't work
serv);
g_hash_table_destroy (serv->handlers);
- g_main_destroy (serv->loop);
+ if (serv->loop)
+ g_main_loop_unref (serv->loop);
g_free (serv);
}
* If CGI, service one message and quit
*/
if (server->proto == SOUP_PROTOCOL_CGI)
- g_main_quit (server->loop);
+ g_main_loop_quit (server->loop);
soup_server_unref (server);
START_ERROR:
if (server->loop) {
- g_main_destroy (server->loop);
+ g_main_loop_unref (server->loop);
server->loop = NULL;
}
}
g_return_if_fail (server != NULL);
if (!server->loop) {
- server->loop = g_main_new (TRUE);
+ server->loop = g_main_loop_new (NULL, TRUE);
soup_server_run_async (server);
}
if (server->loop)
- g_main_run (server->loop);
+ g_main_loop_run (server->loop);
}
void
{
g_return_if_fail (server != NULL);
- g_main_quit (server->loop);
+ g_main_loop_quit (server->loop);
soup_server_unref (server);
}