mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-16 17:05:03 +01:00
remove duplicate stage lock
This commit is contained in:
@@ -69,9 +69,6 @@ func NewStage(ID string) *Stage {
|
|||||||
|
|
||||||
// BroadcastMHF queues a MHFPacket to be sent to all sessions in the stage.
|
// BroadcastMHF queues a MHFPacket to be sent to all sessions in the stage.
|
||||||
func (s *Stage) BroadcastMHF(pkt mhfpacket.MHFPacket, ignoredSession *Session) {
|
func (s *Stage) BroadcastMHF(pkt mhfpacket.MHFPacket, ignoredSession *Session) {
|
||||||
s.Lock()
|
|
||||||
defer s.Unlock()
|
|
||||||
// Broadcast the data.
|
|
||||||
s.Lock()
|
s.Lock()
|
||||||
defer s.Unlock()
|
defer s.Unlock()
|
||||||
for session := range s.clients {
|
for session := range s.clients {
|
||||||
|
|||||||
Reference in New Issue
Block a user