diff options
author | dknn <yoann.blein@free.fr> | 2012-08-16 21:52:56 (GMT) |
---|---|---|
committer | dknn <yoann.blein@free.fr> | 2012-09-22 09:32:38 (GMT) |
commit | dce09fe24d55d67f60d7bc691e285897f1d64fc2 (patch) | |
tree | f064c11c7c25a647a73c42d01e2cb836ea601bb3 /Swiften/ScreenSharing/ScreenSharing.cpp | |
parent | 867a950d5b3eb1422051a57c2533509188014b1a (diff) | |
download | swift-contrib-dce09fe24d55d67f60d7bc691e285897f1d64fc2.zip swift-contrib-dce09fe24d55d67f60d7bc691e285897f1d64fc2.tar.bz2 |
Add error resilience on decoder side
Diffstat (limited to 'Swiften/ScreenSharing/ScreenSharing.cpp')
-rw-r--r-- | Swiften/ScreenSharing/ScreenSharing.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Swiften/ScreenSharing/ScreenSharing.cpp b/Swiften/ScreenSharing/ScreenSharing.cpp index 7fb1280..f2977a2 100644 --- a/Swiften/ScreenSharing/ScreenSharing.cpp +++ b/Swiften/ScreenSharing/ScreenSharing.cpp @@ -84,8 +84,9 @@ bool ScreenSharing::addBestCandidate(boost::shared_ptr<JingleRawUDPTransportPayl if (addr.getRawAddress().is_v6() && addr.toString().compare(2, scopeLinkBeginning.length(), scopeLinkBeginning) == 0) continue; - int port = serverSocket->bindOnAvailablePort(addr); -// int port = serverSocket->bind(HostAddressPort(addr, 29999)); + int port = serverSocket->bind(HostAddressPort(addr, 29999)); + if (port != 29999) + port = serverSocket->bindOnAvailablePort(addr); if (!port) continue; |