summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 17:38:49 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 17:38:49 +0000
commit381412179424cac7961c31421f2768ef971783db (patch)
tree6eaec5fca4523aecca53c786307f42a046aa4286 /src/userprocess.cpp
parentdb20c20a945e2107e1a9c66d62127c0833075ea8 (diff)
Re-enterant safety
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3666 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 104fff4ee..182cd2eb5 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -70,6 +70,7 @@ extern std::vector<InspSocket*> module_sockets;
extern time_t TIME;
extern time_t OLDTIME;
extern std::vector<userrec*> local_users;
+extern InspSocket* socket_ref[MAX_DESCRIPTORS];
char LOG_FILE[MAXBUF];
extern InspIRCd* ServerInstance;
@@ -320,6 +321,7 @@ void DoSocketTimeouts(time_t TIME)
{
log(DEBUG,"Socket poll returned false, close and bail");
SE->DelFd(s->GetFd());
+ socket_ref[s->GetFd()] = NULL;
s->Close();
module_sockets.erase(a);
delete s;