mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
a simple simplify came from the previous PR that merged
Former-commit-id: 509d0ac8164562b655eebf0fe1fc8e166d8f0464
This commit is contained in:
parent
c541657d44
commit
ade6809fc1
|
@ -259,7 +259,7 @@ func (s *Server) join(roomName string, connID string) {
|
||||||
// LeaveAll kicks out a connection from ALL of its joined rooms
|
// LeaveAll kicks out a connection from ALL of its joined rooms
|
||||||
func (s *Server) LeaveAll(connID string) {
|
func (s *Server) LeaveAll(connID string) {
|
||||||
s.mu.Lock()
|
s.mu.Lock()
|
||||||
for name, _ := range s.rooms {
|
for name := range s.rooms {
|
||||||
s.leave(name, connID)
|
s.leave(name, connID)
|
||||||
}
|
}
|
||||||
s.mu.Unlock()
|
s.mu.Unlock()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user