From 0fbc81cffcf28adb80b731f3604d7ea02c32f86b Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 12 Dec 2005 15:45:25 +0000 Subject: Fixed timeout code git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2344 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 7f0ea8fd8..00c7c5f79 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2700,7 +2700,7 @@ int InspIRCd(char** argv, int argc) InspSocket* s = (InspSocket*)*a; if ((s) && (s->GetFd() == activefds[activefd])) { - if (!s->Poll()) + if ((s->Timeout(TIME)) || (!s->Poll())) { log(DEBUG,"Socket poll returned false, close and bail"); SE->DelFd(s->GetFd()); -- cgit v1.3.1-10-gc9f91