update files

This commit is contained in:
nuintun 2015-12-04 17:08:51 +08:00
parent b18bcec73d
commit 1b8e084879

View File

@ -6,11 +6,17 @@
var Emulator = require('./emulator');
var emulator;
// thread
process.on('message', function (project){
var stream;
var emulator = new Emulator({
if (emulator) {
emulator.stop();
}
emulator = new Emulator({
cwd: project.path,
command: project.command.value
});