Skip to content

Commit eb96b34

Browse files
author
WebFreak001
committed
Added restart on dcd server shutdown
Signed-off-by: WebFreak001 <janju007@web.de>
1 parent 54b00d4 commit eb96b34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/workspace-d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ export class WorkspaceD extends EventEmitter implements
3232
this.totalData = new Buffer(0);
3333
this.instance.stderr.on("data", function(chunk) {
3434
console.log("WorkspaceD Debug: " + chunk);
35+
if (chunk.toString().indexOf("DCD-Server stopped with code") != -1)
36+
self.ensureDCDRunning();
3537
});
3638
this.instance.stdout.on("data", function(chunk) {
3739
self.handleData.call(self, chunk);

0 commit comments

Comments
 (0)