Proper shutdown procedure

This commit is contained in:
Aditya Kulkarni
2018-11-07 21:11:53 -08:00
parent 0f603f0d0f
commit f485e0fa1f
4 changed files with 28 additions and 3 deletions

View File

@@ -90,6 +90,8 @@ public:
std::shared_ptr<ConnectionConfig> config;
MainWindow* main;
void shutdown();
void doRPC(const json& payload, const std::function<void(json)>& cb,
const std::function<void(QNetworkReply*, const json&)>& ne);
void doRPCWithDefaultErrorHandling(const json& payload, const std::function<void(json)>& cb);
@@ -143,6 +145,9 @@ public:
});
waitTimer->start(100);
}
private:
bool shutdownInProgress = false;
};
#endif