mirror of
https://github.com/edu4rdshl/Strata.git
synced 2026-07-17 23:24:46 +00:00
fix: drop the needless try/catch around send_signal
Gio.Subprocess.send_signal returns void and is race-free, so it never throws.
This commit is contained in:
parent
98307b8a2e
commit
d75ba7fff6
1 changed files with 1 additions and 1 deletions
|
|
@ -326,7 +326,7 @@ export default class StrataExtension extends Extension {
|
|||
if (!this._daemon) return;
|
||||
const daemon = this._daemon;
|
||||
this._daemon = null;
|
||||
try { daemon.send_signal(15); } catch { /* already exited */ } // SIGTERM
|
||||
daemon.send_signal(15); // SIGTERM
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue