程智超0668000959
e70a9fca7c
fix(tools): use sync.Once for thread-safe Stop() in SessionManager
...
The Stop() method previously used a select/default pattern which was not
safe under concurrent calls — two goroutines could both pass the check
and attempt to close the same channel, causing a panic.
Replace with sync.Once to guarantee exactly-once close semantics,
matching the documented contract of being safe for concurrent use.
Review feedback: afjcjsbx
2026-06-02 20:20:30 +08:00
..
2026-05-12 23:23:26 +02:00
2026-04-28 16:19:59 +08:00
2026-05-22 16:36:44 -07:00
2026-05-12 23:12:37 +02:00
2026-05-31 19:20:41 +08:00
2026-06-01 20:08:40 +08:00
2026-04-15 22:23:47 +08:00
2026-04-15 22:23:17 +08:00
2026-04-28 12:54:28 +08:00
2026-04-17 14:16:18 +08:00
2026-04-17 13:44:31 +08:00
2026-04-28 12:54:28 +08:00
2026-04-17 13:44:31 +08:00
2026-05-14 09:50:47 +08:00
2026-04-17 13:44:31 +08:00
2026-03-29 14:06:19 +02:00
2026-04-17 13:44:31 +08:00
2026-05-08 09:18:14 +02:00
2026-05-08 09:18:14 +02:00
2026-05-12 23:12:37 +02:00
2026-05-08 09:18:14 +02:00
2026-03-29 14:06:19 +02:00
2026-03-25 21:02:49 +08:00
2026-03-25 21:02:49 +08:00
2026-06-02 17:13:31 +08:00
2026-06-02 20:20:30 +08:00
2026-05-12 18:06:47 +02:00
2026-02-18 02:01:29 +08:00
2026-02-18 02:01:29 +08:00
2026-06-02 20:20:30 +08:00
2026-03-25 21:02:49 +08:00
2026-06-01 20:08:40 +08:00
2026-03-29 14:06:19 +02:00
2026-03-29 14:06:19 +02:00
2026-05-07 13:16:30 +02:00
2026-05-07 13:16:30 +02:00
2026-03-29 14:06:19 +02:00
2026-04-15 21:27:13 +08:00
2026-03-25 21:02:49 +08:00
2026-03-25 21:02:49 +08:00
2026-04-01 21:32:10 +08:00
2026-03-29 14:06:19 +02:00
2026-03-24 18:35:56 +08:00