fix connecting, makes more verbose on error
[melted_gui] / src / player.c
index d7468b6..77b32f5 100644 (file)
@@ -146,10 +146,10 @@ static void* player_thread_proc(void* data)
     for(; !player->app->f_exit;)
     {
         /* connect */
-        if(mvcp_connect(handle->command) == mvcp_ok)
+        if(mvcp_connect(handle->command) != mvcp_ok)
         {
-            g_warning("player_thread_proc: failed to connect to server %s (player=%d, unit=%d)\n",
-                player->app->players.host, player->idx, player->unit);
+            g_warning("player_thread_proc: failed to connect to server %s:%d (player=%d, unit=%d)\n",
+                player->app->players.host, player->app->players.port, player->idx, player->unit);
             sleep(1);
             continue;
         };