Move window_check_servers() call out of loop, otherwise the client does a

huge amount of work on each keystroke if you have a long server list and
start it up disconnected (-N).


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@150 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2012-02-10 12:38:08 +00:00
parent 87f24694b9
commit 5222ce2f1d

View File

@@ -595,8 +595,6 @@ static time_t last_timeout = 0;
}
from_server = primary_server;
}
if (primary_server == -1 || !is_server_open(primary_server))
window_check_servers(-1);
if (server_list[i].read != -1 && (errno == ENETUNREACH || errno == EHOSTUNREACH))
{
if (last_timeout == 0)
@@ -609,6 +607,9 @@ static time_t last_timeout = 0;
}
}
}
if (primary_server == -1 || !is_server_open(primary_server))
window_check_servers(-1);
}
/*