修复塔离开bug
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-07 20:50:02 +08:00
parent 9cf6ad8b88
commit 7d7cc0d174
3 changed files with 3 additions and 3 deletions

View File

@@ -253,7 +253,7 @@ func (player1 *Player) Kick(isquit bool) {
// --- 新增超时机制核心代码 ---
// 设定超时时间可根据业务需求调整这里以3秒为例
const kickTimeout = 5 * time.Second
const kickTimeout = 3 * time.Second
select {
case <-CloseChan:
// 正常流程连接关闭回调已执行CloseChan 被关闭