File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1112,7 +1112,7 @@ function removeDirectory(dirPath: string): void {
1112
1112
}
1113
1113
}
1114
1114
1115
- async function serverStop ( ) {
1115
+ export async function serverStop ( ) {
1116
1116
const serverPidFile = getPidFile ( omegaEditPort )
1117
1117
if ( fs . existsSync ( serverPidFile ) ) {
1118
1118
const pid = parseInt ( fs . readFileSync ( serverPidFile ) . toString ( ) )
Original file line number Diff line number Diff line change 16
16
*/
17
17
import { destroySession } from '@omega-edit/client'
18
18
import { updateHeartbeatInterval } from './heartbeat'
19
+ import { serverStop } from '../../dataEditorClient'
19
20
20
21
let activeSessions : string [ ] = [ ]
21
22
@@ -31,4 +32,5 @@ export async function removeActiveSession(sessionId: string) {
31
32
activeSessions . splice ( index , 1 )
32
33
updateHeartbeatInterval ( activeSessions )
33
34
await destroySession ( sessionId )
35
+ await serverStop ( )
34
36
}
You can’t perform that action at this time.
0 commit comments