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

View File

@ -158,6 +158,8 @@ func (m *Client) Closed() bool {
}
func (m *Client) monitor() {
defer m.manager.onClientFinish()
for {
select {
case <-m.ctx.Done():
@ -172,8 +174,6 @@ func (m *Client) monitor() {
}
func (m *Client) cleanup() {
defer m.manager.onClientFinish()
m.access.Lock()
defer m.access.Unlock()