mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #717
28bfc90
simplewallet: special ^C handling for windows (moneromooo-monero)
This commit is contained in:
commit
853f80e23a
@ -2746,7 +2746,11 @@ int main(int argc, char* argv[])
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
tools::signal_handler::install([&w](int type) {
|
tools::signal_handler::install([&w](int type) {
|
||||||
|
#ifdef WIN32
|
||||||
|
if (type == CTRL_C_EVENT)
|
||||||
|
#else
|
||||||
if (type == SIGINT)
|
if (type == SIGINT)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
// if we're pressing ^C when refreshing, just stop refreshing
|
// if we're pressing ^C when refreshing, just stop refreshing
|
||||||
w.interrupt();
|
w.interrupt();
|
||||||
|
Loading…
Reference in New Issue
Block a user