From f136492c45650332df2d46cdf0a18b254e1673fa Mon Sep 17 00:00:00 2001 From: John Sully Date: Wed, 20 Nov 2019 17:00:40 -0500 Subject: [PATCH] Additional asserts ensuring the client is creating on the correct thread Former-commit-id: 937702ea1dd0a4331dd7c66ee9f5c2c3f2354d10 --- src/networking.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/networking.cpp b/src/networking.cpp index ef3ee2683..97744c410 100644 --- a/src/networking.cpp +++ b/src/networking.cpp @@ -99,6 +99,7 @@ client *createClient(int fd, int iel) { * in the context of a client. When commands are executed in other * contexts (for instance a Lua script) we need a non connected client. */ if (fd != -1) { + serverAssert(iel == (serverTL - g_pserver->rgthreadvar)); anetNonBlock(NULL,fd); anetEnableTcpNoDelay(NULL,fd); if (cserver.tcpkeepalive)