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:
@@ -595,8 +595,6 @@ static time_t last_timeout = 0;
|
|||||||
}
|
}
|
||||||
from_server = primary_server;
|
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 (server_list[i].read != -1 && (errno == ENETUNREACH || errno == EHOSTUNREACH))
|
||||||
{
|
{
|
||||||
if (last_timeout == 0)
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user