From 576a5c1abe45a523ca5e5b3e6d542f29ed26dfdb Mon Sep 17 00:00:00 2001 From: nuintun Date: Thu, 14 Jan 2016 11:04:48 +0800 Subject: [PATCH] update files --- bin/emulator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/emulator.js b/bin/emulator.js index 297b3bc..0a7f8ef 100644 --- a/bin/emulator.js +++ b/bin/emulator.js @@ -60,6 +60,8 @@ Emulator.prototype.start = function (){ Emulator.prototype.stop = function (){ if (this.thread) { threadKill(this.thread.pid); + } else { + context.emit('close', 0); } };