clean up mux client in manager

pull/432/head
Darien Raymond 2017-04-05 14:24:15 +02:00
parent d10445d49a
commit 9b1d20943f
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 2 additions and 0 deletions

View File

@ -172,6 +172,8 @@ func (m *Client) monitor() {
}
func (m *Client) cleanup() {
defer m.manager.onClientFinish()
m.access.Lock()
defer m.access.Unlock()