mirror of https://github.com/adamdruppe/arsd.git
experimental to avoid invalid memory op on close
This commit is contained in:
parent
0bd953e9e5
commit
70f178a477
|
@ -2331,7 +2331,7 @@ struct EventLoopImpl {
|
||||||
int pulseFd = -1;
|
int pulseFd = -1;
|
||||||
version(linux) ep.epoll_event[16] events = void;
|
version(linux) ep.epoll_event[16] events = void;
|
||||||
} else version(Windows) {
|
} else version(Windows) {
|
||||||
Timer pulser;
|
static Timer pulser; // this is static so the GC doesn't try to reap it; we want to manage it ourselves
|
||||||
HANDLE[] handles;
|
HANDLE[] handles;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue