diff options
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r-- | src/userprocess.cpp | 2 |
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; |