diff options
-rw-r--r-- | commands.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3,6 +3,7 @@ #include "servers.h" #include "server_communication.h" +#include <gio/gunixconnection.h> #include <string.h> GQuark commands_quark() { @@ -210,7 +211,7 @@ void commands_handle(GSocketConnection *connection, const gchar *cmd, GError **e commands_find(connection, cmd, error); } else if(g_strncasecmp(cmd, "exit", 4) == 0) { commands_exit(connection, cmd, error); - } else if(g_strncasecmp(cmd, "get", 3) == 0) { + } else if(G_IS_UNIX_CONNECTION(connection) && g_strncasecmp(cmd, "get", 3) == 0) { commands_get(connection, cmd, error); } else { g_debug("unknown command"); |