From 0b6863175929c926cc6d00b70de385b47c490a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Wed, 30 Oct 2019 13:55:38 -0400 Subject: [PATCH] file transfer: cancel current ICE operations to avoid to block the main loop Change-Id: Ibcc12d0113431f4b432d2c5e1938abb4d4bc82e8 --- src/jamidht/p2p.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jamidht/p2p.cpp b/src/jamidht/p2p.cpp index 4d3a233d80..fbf4e7f8af 100644 --- a/src/jamidht/p2p.cpp +++ b/src/jamidht/p2p.cpp @@ -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; } -- GitLab