make sure the NodeList is reset on its own thread

This commit is contained in:
Stephen Birarda 2015-12-04 11:18:46 -08:00
parent d9a1563396
commit 918342df5f
2 changed files with 6 additions and 1 deletions

View file

@ -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() {

View file

@ -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;