From 3b54b3bd800ded994d55ac81c7548d4601538d79 Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Fri, 10 Dec 2021 20:26:46 +0800 Subject: [PATCH] Revert "raise socket error during auth" This reverts commit 839975415d213e8d338d671f6e42a9c5cab5b4b8. --- lualib/skynet/socketchannel.lua | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lualib/skynet/socketchannel.lua b/lualib/skynet/socketchannel.lua index d7631818..521d9832 100644 --- a/lualib/skynet/socketchannel.lua +++ b/lualib/skynet/socketchannel.lua @@ -418,12 +418,6 @@ local function block_connect(self, once) if #self.__connecting > 0 then -- connecting in other coroutine local co = coroutine.running() - for _, v in ipairs(self.__connecting) do - if v == co then - -- socket closed during auth (connecting) , See Issue #1513 - error(socket_error) - end - end table.insert(self.__connecting, co) skynet.wait(co) else