This commit is contained in:
akrike
2025-06-08 22:17:24 +08:00
parent b39302822f
commit bc9e33ab4d
3 changed files with 7 additions and 12 deletions

View File

@@ -177,12 +177,14 @@ func (p *ProcessBase) AddConn(user string, c ConnectInstance) {
p.wsLock.Lock()
defer p.wsLock.Unlock()
p.ws[user] = c
middle.ProcessWaitCond.Trigger()
}
func (p *ProcessBase) DeleteConn(user string) {
p.wsLock.Lock()
defer p.wsLock.Unlock()
delete(p.ws, user)
middle.ProcessWaitCond.Trigger()
}
func (p *ProcessBase) logReportHandler(log string) {