Fix silly locking issue

This commit is contained in:
Sophie
2020-03-10 08:55:52 +00:00
parent 081deba17b
commit ab7a52caea

View File

@@ -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
}
}