diff --git a/NET/lhs_net_socket.pbi b/NET/lhs_net_socket.pbi index 259597d..40cf7fa 100644 --- a/NET/lhs_net_socket.pbi +++ b/NET/lhs_net_socket.pbi @@ -84,12 +84,12 @@ Module lsocket If bind_(SocketID, @lsockets_server(Str(SocketID)), SizeOf(sockaddr_in)) <> 0 Close_(SocketID) DeleteMapElement(lsockets_server(), Str(SocketID)) - ProcedureReturn -1 + ProcedureReturn -2 Else If listen_(SocketID, Queuelengt) <> 0 Close_(SocketID) DeleteMapElement(lsockets_server(), Str(SocketID)) - ProcedureReturn -1 + ProcedureReturn -3 EndIf EndIf ProcedureReturn SocketID