mirror of
https://github.com/nuintun/command-manager.git
synced 2025-10-19 17:17:33 +08:00
update files
This commit is contained in:
@@ -6,11 +6,17 @@
|
|||||||
|
|
||||||
var Emulator = require('./emulator');
|
var Emulator = require('./emulator');
|
||||||
|
|
||||||
|
var emulator;
|
||||||
|
|
||||||
// thread
|
// thread
|
||||||
process.on('message', function (project){
|
process.on('message', function (project){
|
||||||
var stream;
|
var stream;
|
||||||
|
|
||||||
var emulator = new Emulator({
|
if (emulator) {
|
||||||
|
emulator.stop();
|
||||||
|
}
|
||||||
|
|
||||||
|
emulator = new Emulator({
|
||||||
cwd: project.path,
|
cwd: project.path,
|
||||||
command: project.command.value
|
command: project.command.value
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user