From 735ed7ae64e24a7c6db2a80c8c53f0bd427d331a Mon Sep 17 00:00:00 2001 From: "[d.j.a.y] Jerome Blanchi" Date: Thu, 31 Mar 2016 09:17:51 +0200 Subject: [PATCH] Reloaded : Fix autoconnect (MT) Connect client at first available server and try to connect multitrack to all existing server. --- veejay-current/veejay-client/src/vj-api.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/veejay-current/veejay-client/src/vj-api.c b/veejay-current/veejay-client/src/vj-api.c index 2d55a5ce..9033f6a5 100644 --- a/veejay-current/veejay-client/src/vj-api.c +++ b/veejay-current/veejay-client/src/vj-api.c @@ -7430,15 +7430,17 @@ void vj_gui_init(char *glade_file, veejay_memset( &info->watch, 0, sizeof(watchdog_t)); info->watch.state = STATE_WAIT_FOR_USER; // + //connect client at first available server + //and try to connect multitrack to all existing server if( auto_connect ) { for( i = DEFAULT_PORT_NUM; i < 9999; i+= 1000 ) { - if (multrack_audoadd( gui->mt, "localhost", i) != -1) + if (multrack_audoadd( gui->mt, "localhost", i) != -1 && auto_connect) { update_spin_value( "button_portnum", i ); info->watch.state = STATE_CONNECT; - break; + auto_connect = 0; } } }