Skip to content

Commit

Permalink
Reset checkEventId in checkConnection
Browse files Browse the repository at this point in the history
Fixes #9
  • Loading branch information
gahr committed Feb 20, 2018
1 parent eabc596 commit ff4160a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion retcl.tm
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ oo::class create retcl {
# Periodically check whether a connection has been interrupted.
method checkConnection {} {
if {$sock ne {} && ![catch {chan eof $sock} err] && !$err} {
after 500 [list [self object] checkConnection]
set checkEventId [after 500 [list [self object] checkConnection]]
} else {
my disconnect
set activity 1
Expand Down

0 comments on commit ff4160a

Please sign in to comment.