mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
simplewallet: special ^C handling for windows
Because obviously it doesn't work as other POSIX platforms. Reported and tested by luigi1111.
This commit is contained in:
parent
dfd0e9c97d
commit
28bfc903b9
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue