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