1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 05:56:35 +01:00

rm 'connecting' message and a few small fixes

This commit is contained in:
Jfreegman
2014-03-11 18:57:32 -04:00
parent ab0da36cb7
commit 0151b9b49f
3 changed files with 9 additions and 9 deletions

View File

@@ -275,18 +275,18 @@ static void do_connection(Tox *m, ToxWindow *prompt)
bool is_connected = tox_isconnected(m);
if (!dht_on && !is_connected && !(conn_try++ % 100)) {
prep_prompt_win();
if (!conn_err) {
wprintw(prompt->window, "Establishing connection...\n");
if ((conn_err = init_connection(m)))
if ((conn_err = init_connection(m))) {
prep_prompt_win();
wprintw(prompt->window, "\nAuto-connect failed with error code %d\n", conn_err);
}
}
} else if (!dht_on && is_connected) {
dht_on = true;
prompt_update_connectionstatus(prompt, dht_on);
prep_prompt_win();
wprintw(prompt->window, "\nDHT connected.\n");
wprintw(prompt->window, "DHT connected.\n");
} else if (dht_on && !is_connected) {
dht_on = false;
prompt_update_connectionstatus(prompt, dht_on);