Update handlers_stage.go

This commit is contained in:
wish
2023-11-01 08:12:00 +11:00
committed by GitHub
parent f9280f483f
commit cf8a5da0b2

View File

@@ -374,10 +374,12 @@ func handleMsgSysEnumerateStage(s *Session, p mhfpacket.MHFPacket) {
stage.RLock()
if len(stage.reservedClientSlots) == 0 && len(stage.clients) == 0 {
stage.RUnlock()
continue
}
if !strings.Contains(stage.id, pkt.StagePrefix) {
stage.RUnlock()
continue
}