diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-03-12 14:05:25 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-03-12 14:05:25 +0000 |
commit | 28bfc903b9175c4f640abfdaee201dd2a4a60b79 (patch) | |
tree | 937f9b4deace0281c750abf6fce99d88a832b517 /src/simplewallet/simplewallet.cpp | |
parent | Merge pull request #712 (diff) | |
download | monero-28bfc903b9175c4f640abfdaee201dd2a4a60b79.tar.xz |
simplewallet: special ^C handling for windows
Because obviously it doesn't work as other POSIX platforms.
Reported and tested by luigi1111.
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 3e5cdfcb6..04201c37e 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -2746,7 +2746,11 @@ int main(int argc, char* argv[]) else { tools::signal_handler::install([&w](int type) { +#ifdef WIN32 + if (type == CTRL_C_EVENT) +#else if (type == SIGINT) +#endif { // if we're pressing ^C when refreshing, just stop refreshing w.interrupt(); |