diff --git a/bin/emulator.js b/bin/emulator.js index 0a7f8ef..334a2b4 100644 --- a/bin/emulator.js +++ b/bin/emulator.js @@ -61,7 +61,7 @@ Emulator.prototype.stop = function (){ if (this.thread) { threadKill(this.thread.pid); } else { - context.emit('close', 0); + this.emit('close', 0); } };