Skip to content

Commit 2e5d2b1

Browse files
authored
Fix "already disconnected error"
1 parent 94025c2 commit 2e5d2b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/converter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function createWatcher(data) {
4343
}
4444

4545
function dispose() {
46-
if (watcherProcess) {
46+
if (watcherProcess && watcherProcess.connected) {
4747
watcherProcess.disconnect();
4848
watcherProcess = null;
4949
}

0 commit comments

Comments
 (0)