diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-09 17:32:35 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-09 17:32:35 +0000 |
commit | 82a8becf124c6c0b80fe5eaeb8b4d3560782cb0b (patch) | |
tree | 2affc85c72b9cc7a1c168686af7f1dcb67363976 /src/inspircd.cpp | |
parent | 058746466a5cccbca637fa8344974ed6844a3e1f (diff) |
Server linking fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@478 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 77abfb25f..552d2a7f8 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -5562,6 +5562,12 @@ int InspIRCd(void) for (;;) { + fd_set sfd; + struct timeval tval; + FD_ZERO(&sfd); + + user_hash::iterator count2 = clientlist.begin(); + // *FIX* Instead of closing sockets in kill_link when they receive the ERROR :blah line, we should queue // them in a list, then reap the list every second or so. if (reap_counter>5000) @@ -5596,16 +5602,12 @@ int InspIRCd(void) // link packets can manipulate the usertable so beware of // any loops here watching the user or channels hash log(DEBUG,"Sync: exit 3"); + goto label; } } } - fd_set sfd; - struct timeval tval; - FD_ZERO(&sfd); - user_hash::iterator count2 = clientlist.begin(); - while (count2 != clientlist.end()) { char data[10240]; |