mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-16 17:05:03 +01:00
Fix silly locking issue
This commit is contained in:
@@ -175,6 +175,7 @@ func (s *Server) FindSessionByCharID(charID uint32) *Session {
|
||||
stage.RLock()
|
||||
for client := range stage.clients {
|
||||
if client.charID == charID {
|
||||
stage.RUnlock()
|
||||
return client
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user