Skip to content

Commit 8d63443

Browse files
move removeExitHandler to stop method
1 parent 473cc62 commit 8d63443

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libraries/Executor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ class Executor {
178178
}
179179
} else if (file.includes('ready for connections. Version:')) {
180180
fs.unwatchFile(errorLogFile)
181-
removeExitHandler()
182181
resolve({
183182
port,
184183
xPort: mySQLXPort,
@@ -189,6 +188,8 @@ class Executor {
189188
stop: () => {
190189
return new Promise(async (resolve, reject) => {
191190
resolveFunction = resolve;
191+
192+
removeExitHandler()
192193

193194
const killed = await this.#killProcess(process)
194195

0 commit comments

Comments
 (0)