Merge pull request #717

28bfc90 simplewallet: special ^C handling for windows (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2016-03-12 16:21:52 +02:00
commit 853f80e23a
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -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();