mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Merge pull request #6559 from birarda/log-handler-crash
reset the NodeList on its own thread
This commit is contained in:
commit
84b98c93a1
2 changed files with 6 additions and 1 deletions
|
@ -94,7 +94,7 @@ void DomainHandler::softReset() {
|
|||
clearSettings();
|
||||
|
||||
// cancel the failure timeout for any pending requests for settings
|
||||
QMetaObject::invokeMethod(&_settingsTimer, "stop", Qt::AutoConnection);
|
||||
QMetaObject::invokeMethod(&_settingsTimer, "stop");
|
||||
}
|
||||
|
||||
void DomainHandler::hardReset() {
|
||||
|
|
|
@ -200,6 +200,11 @@ void NodeList::processICEPingPacket(QSharedPointer<NLPacket> packet) {
|
|||
}
|
||||
|
||||
void NodeList::reset() {
|
||||
if (thread() != QThread::currentThread()) {
|
||||
QMetaObject::invokeMethod(this, "reset", Qt::BlockingQueuedConnection);
|
||||
return;
|
||||
}
|
||||
|
||||
LimitedNodeList::reset();
|
||||
|
||||
_numNoReplyDomainCheckIns = 0;
|
||||
|
|
Loading…
Reference in a new issue