mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-07 14:56:35 +01:00
bug and format fixes
This commit is contained in:
@@ -222,10 +222,8 @@ static void do_tox(Tox *m, ToxWindow *prompt)
|
||||
|
||||
if (!dht_on && !tox_isconnected(m) && !(conn_try++ % 100)) {
|
||||
if (!conn_err) {
|
||||
conn_err = init_connection(m);
|
||||
wprintw(prompt->window, "\nEstablishing connection...\n");
|
||||
|
||||
if (conn_err)
|
||||
wprintw(prompt->window, "Establishing connection...\n");
|
||||
if (conn_err = init_connection(m))
|
||||
wprintw(prompt->window, "\nAuto-connect failed with error code %d\n", conn_err);
|
||||
}
|
||||
} else if (!dht_on && tox_isconnected(m)) {
|
||||
|
||||
Reference in New Issue
Block a user