From b7277a873cb587ae7cf108bcfd5603d0df14420d Mon Sep 17 00:00:00 2001 From: Ground0 Date: Tue, 17 Sep 2024 10:32:09 +0200 Subject: [PATCH] modify return lhs_net_socket --- NET/lhs_net_socket.pbi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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