mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-14 15:26:06 +08:00
Opt: Use callback instead of timeout when closing window
This commit is contained in:
@@ -21,8 +21,8 @@ export class PyShell extends PythonShell {
|
||||
return this;
|
||||
}
|
||||
|
||||
kill(): this {
|
||||
treeKill(this.childProcess.pid, 'SIGTERM');
|
||||
kill(callback: (...args: any[]) => void): this {
|
||||
treeKill(this.childProcess.pid, 'SIGTERM', callback);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user