summary refs log tree commit diff
path: root/src/CallManager.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-01-15 01:36:50 +0100
committerGitHub <noreply@github.com>2021-01-15 01:36:50 +0100
commit061e4c1b092f7f619ad665416e954dedeb70a5f9 (patch)
tree317032a01ee9a8fd975db79b7a91c06a8ebe7274 /src/CallManager.cpp
parentUpdate mtxclient with more explicit session backup errors (diff)
parentFinesse mobile call invite screen (diff)
downloadnheko-061e4c1b092f7f619ad665416e954dedeb70a5f9.tar.xz
Merge pull request #374 from trilene/master
Add call invite screen for mobile
Diffstat (limited to 'src/CallManager.cpp')
-rw-r--r--src/CallManager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/CallManager.cpp b/src/CallManager.cpp

index f725d49f..0841a079 100644 --- a/src/CallManager.cpp +++ b/src/CallManager.cpp
@@ -45,8 +45,9 @@ CallManager::CallManager(QObject *parent) nhlog::ui()->debug("WebRTC: call id: {} - sending offer", callid_); emit newMessage(roomid_, CallInvite{callid_, sdp, 0, timeoutms_}); emit newMessage(roomid_, CallCandidates{callid_, candidates, 0}); - QTimer::singleShot(timeoutms_, this, [this]() { - if (session_.state() == webrtc::State::OFFERSENT) { + std::string callid(callid_); + QTimer::singleShot(timeoutms_, this, [this, callid]() { + if (session_.state() == webrtc::State::OFFERSENT && callid == callid_) { hangUp(CallHangUp::Reason::InviteTimeOut); emit ChatPage::instance()->showNotification( "The remote side failed to pick up.");