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()
|
stage.RLock()
|
||||||
for client := range stage.clients {
|
for client := range stage.clients {
|
||||||
if client.charID == charID {
|
if client.charID == charID {
|
||||||
|
stage.RUnlock()
|
||||||
return client
|
return client
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user