mirror of
https://github.com/open-webui/open-terminal.git
synced 2026-11-22 21:50:43 -05:00
refac
This commit is contained in:
1 parent
571600016f
commit
e78e7b3fec
1 file changed
+2
@@ -182,6 +182,8 @@ class WaylandDesktop(PortalDesktop):
|
||||
await self.invoke(REMOTE, self.session, REMOTE + ".Session", "Stop")
|
||||
|
||||
async def stop_process(self, process):
|
||||
if process.returncode is not None:
|
||||
return
|
||||
# Services can spawn D-Bus-activated apps in the same owned process group.
|
||||
for sig in (signal.SIGTERM, signal.SIGKILL):
|
||||
with contextlib.suppress(ProcessLookupError):
|
||||
|
||||
Reference in new issue
Block a user