login: Handle errors correctly when failing to accept connections.
This commit is contained in:
parent
e8f84b5907
commit
7909582cd0
@ -47,7 +47,7 @@ accept(LSocket, SessionID) ->
|
|||||||
NextID = SessionID + 1,
|
NextID = SessionID + 1,
|
||||||
ssl:ssl_accept(CSocket),
|
ssl:ssl_accept(CSocket),
|
||||||
spawn_link(?MODULE, process, [CSocket, SessionID]);
|
spawn_link(?MODULE, process, [CSocket, SessionID]);
|
||||||
{error, timeout} ->
|
_ ->
|
||||||
NextID = SessionID,
|
NextID = SessionID,
|
||||||
reload
|
reload
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user