Skip to content
Snippets Groups Projects
Commit 0b686317 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

file transfer: cancel current ICE operations to avoid to block the main loop

Change-Id: Ibcc12d0113431f4b432d2c5e1938abb4d4bc82e8
parent 80657de4
No related branches found
No related tags found
No related merge requests found
...@@ -488,11 +488,13 @@ private: ...@@ -488,11 +488,13 @@ private:
// In case of a timeout // In case of a timeout
JAMI_WARN() << "TLS connection timeout from peer " << peer_.toString() JAMI_WARN() << "TLS connection timeout from peer " << peer_.toString()
<< ": " << e.what(); << ": " << e.what();
ice->cancelOperations(); // This will stop current PeerChannel operations
cancel(); cancel();
return; return;
} catch (...) { } catch (...) {
JAMI_WARN() << "TLS connection failure from peer " JAMI_WARN() << "TLS connection failure from peer "
<< peer_.toString(); << peer_.toString();
ice->cancelOperations(); // This will stop current PeerChannel operations
cancel(); cancel();
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment