summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmumble.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmumble.c b/src/cmumble.c
index 1fa23ca..5824807 100644
--- a/src/cmumble.c
+++ b/src/cmumble.c
@@ -563,6 +563,11 @@ int main(int argc, char **argv)
ctx.conn = g_socket_client_connect_to_host(ctx.sock_client,
host, port, NULL, &error);
+ if (error) {
+ g_printerr("connect failed: %s\n", error->message);
+ return 1;
+ }
+
g_object_get(G_OBJECT(ctx.conn), "base-io-stream", &ctx.iostream, NULL);
{