Skip to content

Commit

Permalink
Added a Timeout to the terminate function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco committed May 20, 2011
1 parent a7ff74b commit 9e070fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ezk_connection.erl
Expand Up @@ -417,6 +417,9 @@ terminate(_Reason, State) ->
receive
{tcp, Socket, Reply} ->
<<_Iteration:32, _PZxid:64, 0:32>> = Reply
after
4 ->
ok
end,
Watchtable = State#cstate.watchtable,
ets:foldl(fun({Data, WO, WM}, _Acc0) ->
Expand Down

0 comments on commit 9e070fd

Please sign in to comment.