mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 14:13:28 +00:00
debugger attach race condition
This commit is contained in:
@@ -18,6 +18,7 @@ import { once } from 'events';
|
||||
import { PassThrough } from 'stream';
|
||||
import { Console } from 'console'
|
||||
import util from 'util';
|
||||
import { sleep } from '../sleep';
|
||||
|
||||
export class PluginHost {
|
||||
worker: cluster.Worker;
|
||||
@@ -246,6 +247,7 @@ export class PluginHost {
|
||||
try {
|
||||
await waitDebug;
|
||||
console.info('debugger attached.');
|
||||
await sleep(1000);
|
||||
}
|
||||
catch (e) {
|
||||
console.error('debugger failed', e);
|
||||
|
||||
Reference in New Issue
Block a user