Commits

Oscar Hellström committed b299dd0

Runtime errors are caught with error not exit class.

  • Participants
  • Parent commits 2ee1f5b

Comments (0)

Files changed (1)

File src/gen_tcpd.erl

 -spec init_acceptor(pid(), atom(), term(), any(), timeout()) -> _.
 init_acceptor(Parent, Callback, CState, Socket, SSLTimeout) ->
 	try link(Parent)
-		catch exit:noproc -> exit(normal)
+		catch error:noproc -> exit(normal)
 	end,
 	accept(Parent, Callback, CState, Socket, SSLTimeout).