aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-03-12 14:05:25 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-03-12 14:05:25 +0000
commit28bfc903b9175c4f640abfdaee201dd2a4a60b79 (patch)
tree937f9b4deace0281c750abf6fce99d88a832b517 /src
parentMerge pull request #712 (diff)
downloadmonero-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')
-rw-r--r--src/simplewallet/simplewallet.cpp4
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();