Skip to content

Commit

Permalink
OnClose invoked in seperate goroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
lizs authored Dec 27, 2018
1 parent e0e2a05 commit 0af5cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (s *Session) Close(force bool) {
s.conn.Close()

log.Printf("conn [%d] closed.\n", s.ID)
s.node.internalHandler.OnClose(s, force)
go s.node.internalHandler.OnClose(s, force)
}

// IsClosed 是否关闭
Expand Down

0 comments on commit 0af5cff

Please sign in to comment.