mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-20 00:28:39 +02:00
websocket: remove explicit disconnect
This commit is contained in:
@@ -381,9 +381,9 @@ void Settings::setSelection(int index) {
|
||||
|
||||
void Settings::enableWebsocket(bool enabled) {
|
||||
if (enabled && !config()->get(Config::offlineMode).toBool() && !config()->get(Config::disableWebsocket).toBool()) {
|
||||
websocketNotifier()->websocketClient.restart();
|
||||
websocketNotifier()->websocketClient->restart();
|
||||
} else {
|
||||
websocketNotifier()->websocketClient.stop();
|
||||
websocketNotifier()->websocketClient->stop();
|
||||
}
|
||||
ui->nodeWidget->onWebsocketStatusChanged();
|
||||
emit websocketStatusChanged(enabled);
|
||||
|
||||
Reference in New Issue
Block a user