Commit eb19349
committed
service: move process termination to finally block
If a type error or similar occurs during send_remote_shutdown_command,
one should always terminate the service process, even if an exception
is thrown.
Thus moving self._terminate_process() into a finally block.
Signed-off-by: Sandro Pischinger <[email protected]>1 parent 7ed046c commit eb19349
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
| 161 | + | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| |||
0 commit comments