diff audacious/controlsocket.c @ 1456:6fe7ba6e5489 trunk

[svn] - Don't poll the config database if not using TCP sockets.
author nhjm449
date Mon, 31 Jul 2006 17:06:44 -0700
parents de0146be48ee
children f12d7e208b43
line wrap: on
line diff
--- a/audacious/controlsocket.c	Sat Jul 29 16:23:16 2006 -0700
+++ b/audacious/controlsocket.c	Mon Jul 31 17:06:44 2006 -0700
@@ -98,6 +98,8 @@
     gint i;
     gint fd;
 
+    audacious_set_session_type((gint *) AUDACIOUS_TYPE_UNIX);
+
     if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) {
         g_critical("ctrlsocket_setup(): Failed to open socket: %s",
                    strerror(errno));
@@ -154,6 +156,8 @@
     gint i;
     gint fd;
 
+    audacious_set_session_type((gint *) AUDACIOUS_TYPE_TCP);
+
     if ((fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
         g_critical("ctrlsocket_setup(): Failed to open socket: %s",
                    strerror(errno));