return promise

master
David Kebler 2017-02-21 21:39:25 -08:00
parent efd1834d14
commit 948a7b84f3
1 changed files with 2 additions and 2 deletions

View File

@ -85,11 +85,11 @@ class Interrupt extends EventEmitter {
}
start() {
this.clear().then(() => this.poller.add(this.valuefd, Epoll.EPOLLPRI | Epoll.EPOLLONESHOT));
return this.clear().then(() => this.poller.add(this.valuefd, Epoll.EPOLLPRI | Epoll.EPOLLONESHOT));
}
reset() {
this.clear().then(() => this.poller.modify(this.valuefd, Epoll.EPOLLPRI | Epoll.EPOLLONESHOT));
return this.clear().then(() => this.poller.modify(this.valuefd, Epoll.EPOLLPRI | Epoll.EPOLLONESHOT));
}
stop() {