Skip to content

Commit

Permalink
fixbug QTTimeer
Browse files Browse the repository at this point in the history
  • Loading branch information
Macbook authored and Macbook committed Dec 24, 2024
1 parent 6331658 commit c9003f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/platforms/ios/ios_controller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,12 @@

void IosController::stopForHandshake() {
if (m_handshakeTimer) {
if (QThread::currentThread() != m_handshakeTimer->thread()) {
QMetaObject::invokeMethod(m_handshakeTimer, "stop", Qt::QueuedConnection);
QMetaObject::invokeMethod(m_handshakeTimer, "deleteLater", Qt::QueuedConnection);
m_handshakeTimer = nullptr;
return;
}
if (m_handshakeTimer->isActive()) {
m_handshakeTimer->stop();
}
Expand Down

0 comments on commit c9003f5

Please sign in to comment.