Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit b63c31e

Browse files
committed
fixes crash on deactivate() (do not try to despawn the server)
1 parent c55bc70 commit b63c31e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import net from 'net';
44
import FS from 'fs';
55
import { CompositeDisposable } from 'atom';
6-
import { spawnServer, terminateServer, getPipePath } from './server';
6+
import { spawnServer, getPipePath } from './server';
77

88
const pipepath = getPipePath();
99

@@ -89,9 +89,11 @@ export function activate() {
8989

9090
export function deactivate() {
9191
if (global.linter_julia_spawnedServer !== null) {
92-
terminateServer(global.linter_julia_spawnedServer);
93-
global.linter_julia_spawnedServer = null;
94-
global.linter_julia_started = false;
92+
// terminateServer() just does not work
93+
// terminateServer(global.linter_julia_spawnedServer);
94+
// global.linter_julia_spawnedServer = null;
95+
// global.linter_julia_started = false;
96+
// server stays alive, just try not to deadlock
9597
global.linter_julia_locked = false;
9698
}
9799
if (subscriptions) {

0 commit comments

Comments
 (0)