Skip to content

Commit

Permalink
send clean up Client ID to TM
Browse files Browse the repository at this point in the history
  • Loading branch information
jim3ma committed Aug 29, 2017
1 parent 85f3d30 commit 1b1d1db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -741,14 +741,14 @@ func (t *TunnelTransport) Stop() {
timeout := 0
for {
if t.readStopped && t.writeStopped {
return
break
}
if timeout < TMHeartBeatSecond {
time.Sleep(time.Second)
timeout++
} else {
t.rw.Close()
return
break
}
}
t.cleanUpClientIDCh <- t.clientID
Expand Down

0 comments on commit 1b1d1db

Please sign in to comment.