login: Handle errors correctly when failing to accept connections.

This commit is contained in:
Loïc Hoguin 2010-05-20 00:00:14 +02:00
parent e8f84b5907
commit 7909582cd0

View File

@ -47,7 +47,7 @@ accept(LSocket, SessionID) ->
NextID = SessionID + 1,
ssl:ssl_accept(CSocket),
spawn_link(?MODULE, process, [CSocket, SessionID]);
{error, timeout} ->
_ ->
NextID = SessionID,
reload
end,