]> sjero.net Git - linphone/commitdiff
Fix bug in auto detect procedure of tunnel manager.
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Thu, 3 Jan 2013 14:07:02 +0000 (15:07 +0100)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Thu, 3 Jan 2013 14:09:45 +0000 (15:09 +0100)
The same UDP client was always used and so the tunnel could never be
enabled by the auto detect mode.

coreapi/TunnelManager.cc

index 71ecc51843c288dc45d414a63435a954595b14af..028191ed0342f633026d06ce70a6341cac08fd4a 100644 (file)
@@ -399,6 +399,7 @@ void TunnelManager::processUdpMirrorEvent(const Event &ev){
                enable(false);
                mAutoDetectStarted = false;
        } else {
+               mCurrentUdpMirrorClient++;
                if (mCurrentUdpMirrorClient !=mUdpMirrorClients.end()) {
                        // enable tunnel but also try backup server
                        LOGI("Tunnel is required, enabling; Trying backup udp mirror");