remove duplicate stage lock

This commit is contained in:
wish
2023-03-05 22:30:28 +11:00
parent 52d1bd1617
commit 445b300b8b

View File

@@ -69,9 +69,6 @@ func NewStage(ID string) *Stage {
// BroadcastMHF queues a MHFPacket to be sent to all sessions in the stage.
func (s *Stage) BroadcastMHF(pkt mhfpacket.MHFPacket, ignoredSession *Session) {
s.Lock()
defer s.Unlock()
// Broadcast the data.
s.Lock()
defer s.Unlock()
for session := range s.clients {