mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
make sure the NodeList is reset on its own thread
This commit is contained in:
parent
d9a1563396
commit
918342df5f
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() {
|
||||
|
|
|
@ -199,6 +199,11 @@ void NodeList::processICEPingPacket(QSharedPointer<NLPacket> packet) {
|
|||
}
|
||||
|
||||
void NodeList::reset() {
|
||||
if (thread() != QThread::currentThread()) {
|
||||
QMetaObject::invokeMethod(this, "reset");
|
||||
return;
|
||||
}
|
||||
|
||||
LimitedNodeList::reset();
|
||||
|
||||
_numNoReplyDomainCheckIns = 0;
|
||||
|
|
Loading…
Reference in a new issue