Only start websocket connections if needed

This commit is contained in:
Aditya Kulkarni
2019-02-08 13:32:00 -08:00
parent 3caa372d5a
commit 4bdcc73c73
4 changed files with 54 additions and 14 deletions

View File

@@ -46,6 +46,9 @@ public:
void setDefaultPayFrom();
void replaceWormholeClient(WormholeClient* newClient);
bool isWebsocketListening();
void createWebsocket();
void stopWebsocket();
Ui::MainWindow* ui;
@@ -107,8 +110,6 @@ private:
void restoreSavedStates();
void createWebsocket();
WSServer* wsserver = nullptr;
WormholeClient* wormhole = nullptr;