mirror of
https://github.com/nuintun/command-manager.git
synced 2025-12-20 18:45:45 +08:00
update files
This commit is contained in:
@@ -35,22 +35,22 @@ module.exports = {
|
||||
command: project.command.value
|
||||
});
|
||||
|
||||
var stream = thread.start();
|
||||
|
||||
stream.stdout.on('data', function (data){
|
||||
thread.on('data', function (data){
|
||||
event.sender.send('emulator', 'data', project, data.toString());
|
||||
});
|
||||
|
||||
stream.stderr.on('data', function (error){
|
||||
thread.on('error', function (error){
|
||||
event.sender.send('emulator', 'error', project, error.toString());
|
||||
});
|
||||
|
||||
stream.on('close', function (signal){
|
||||
thread.on('close', function (signal){
|
||||
event.sender.send('emulator', 'close', project, signal.toString());
|
||||
|
||||
delete threads[project.name];
|
||||
});
|
||||
|
||||
thread.start();
|
||||
|
||||
threads[project.name] = thread;
|
||||
} else {
|
||||
thread.stop();
|
||||
|
||||
Reference in New Issue
Block a user