Hotfix to prevent segfault while importing backups
Tested and working in my dev environment
@@ -19384,6 +19384,14 @@ void DeRestPluginPrivate::genericDisconnectNetwork()
apsCtrl->setNetworkState(deCONZ::NotInNetwork);
+ if (!reconnectTimer)
+ {
+ reconnectTimer = new QTimer(this);
+ reconnectTimer->setSingleShot(true);
+ connect(reconnectTimer, SIGNAL(timeout()),
+ this, SLOT(reconnectTimerFired()));
+ }
+
reconnectTimer->start(DISCONNECT_CHECK_DELAY);
}
