diff options
author | Wolfy-J <[email protected]> | 2019-05-02 18:21:36 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-02 18:21:36 +0300 |
commit | eb8c64941cbcd30ff79b6147efd5fef42eccb648 (patch) | |
tree | bde0ceb7e7236850cfe999da7c3ffecf62b58d00 /server.go | |
parent | 34abca68708ed881c3360ee749d794b0000a3aec (diff) |
miiiinor performance optimizations
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -203,9 +203,8 @@ func (s *Server) poolListener(event int, ctx interface{}) { // throw invokes event handler if any. func (s *Server) throw(event int, ctx interface{}) { s.mul.Lock() - defer s.mul.Unlock() - if s.lsn != nil { s.lsn(event, ctx) } + s.mul.Unlock() } |