fix(gateway): add error handling for tailscaleCleanup in shutdown

This commit is contained in:
Episkey 2026-01-26 15:03:16 +08:00
parent 6859e1e6a6
commit bcd5deff7d
2 changed files with 6 additions and 1 deletions

View File

@ -35,6 +35,7 @@ Status: unreleased.
- macOS: keep custom SSH usernames in remote target. (#2046) Thanks @algal.
### Fixes
- Gateway: add error handling for Tailscale cleanup in shutdown sequence to prevent interruption.
- Web UI: improve WebChat image paste previews and allow image-only sends. (#1925) Thanks @smartprogrammer93.
## 2026.1.24-3

View File

@ -45,7 +45,11 @@ export function createGatewayCloseHandler(params: {
}
}
if (params.tailscaleCleanup) {
await params.tailscaleCleanup();
try {
await params.tailscaleCleanup();
} catch {
/* ignore */
}
}
if (params.canvasHost) {
try {