chatgui: add SetConsoleCtrlHandler for reliable Ctrl-C on Windows
This commit is contained in:
1 parent
a7ec45c4af
commit
faddbef32a
2 files changed
+24
No files matched your search
@@ -44,6 +44,11 @@ static void signal_handler(int sig) {
|
||||
if (g_signal_ua) uasync_wakeup(g_signal_ua);
|
||||
}
|
||||
|
||||
extern "C" void utun_node_signal_shutdown(void) {
|
||||
g_shutdown = 1;
|
||||
if (g_signal_ua) uasync_wakeup(g_signal_ua);
|
||||
}
|
||||
|
||||
UtunNode::UtunNode(QObject* parent) : QObject(parent) {}
|
||||
|
||||
UtunNode::~UtunNode() {
|
||||
|
||||
Reference in new issue
Block a user