Revert "raise socket error during auth"

This reverts commit 839975415d.
This commit is contained in:
Cloud Wu
2021-12-10 20:26:46 +08:00
parent 839975415d
commit 3b54b3bd80

View File

@@ -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