add delay for ping checker stop
This commit is contained in:
parent
681eb5aa86
commit
26994c21b1
3 changed files with 5 additions and 13 deletions
|
|
@ -49,9 +49,6 @@ LocalSocketController::LocalSocketController() {
|
|||
m_initializingTimer.setSingleShot(true);
|
||||
connect(&m_initializingTimer, &QTimer::timeout, this,
|
||||
&LocalSocketController::initializeInternal);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
LocalSocketController::~LocalSocketController() {
|
||||
|
|
@ -279,8 +276,6 @@ void LocalSocketController::deactivate() {
|
|||
QJsonObject json;
|
||||
json.insert("type", "deactivate");
|
||||
write(json);
|
||||
auto result = IpcClient::Interface()->stopNetworkCheck();
|
||||
result.waitForFinished(3000);
|
||||
emit disconnected();
|
||||
}
|
||||
|
||||
|
|
@ -462,9 +457,7 @@ void LocalSocketController::parseCommand(const QByteArray& command) {
|
|||
|
||||
checkStatus();
|
||||
|
||||
emit statusUpdated("",
|
||||
m_deviceIpv4, 0,
|
||||
0);
|
||||
emit statusUpdated("", m_deviceIpv4, 0, 0);
|
||||
|
||||
emit connected(pubkey.toString());
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
#include <functional>
|
||||
|
||||
#include "controllerimpl.h"
|
||||
#include "qjsonobject.h"
|
||||
|
||||
|
||||
class QJsonObject;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue