Commit 980c7b4
committed
fix: 托盘 watchdog 自动重启消失的托盘进程
托盘进程是 _spawn_tray_process 在 lifespan startup 时拉一次的 DETACHED_PROCESS 子进程。一旦它消失(pystray win32 消息循环退出 / 用户从任务管理器结束 / 偶发崩溃),用户看不到右下角图标就无法管理 gateway。\n\n加一个 daemon 线程 _tray_watchdog:每 5 秒检查 _is_tray_already_running,死了就再拉一个。\n\nkill tray 进程后验证 gateway 自动拉起新的。1 parent de4cbe4 commit 980c7b4
1 file changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
330 | 360 | | |
331 | 361 | | |
332 | 362 | | |
| |||
414 | 444 | | |
415 | 445 | | |
416 | 446 | | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
417 | 451 | | |
418 | 452 | | |
419 | 453 | | |
| |||
0 commit comments