1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 02:03:02 +01:00

was making the ID change on every startup

This commit is contained in:
Jfreegman 2013-08-10 18:00:54 -04:00
parent 35f7ba210d
commit 31a9a344d2

7
main.c
View File

@ -427,15 +427,16 @@ int main(int argc, char *argv[])
} }
} }
} }
if(f_loadfromfile)
load_data(DATA_FILE);
free(DATA_FILE);
init_term(); init_term();
init_tox(); init_tox();
init_windows(); init_windows();
init_window_status(); init_window_status();
if(f_loadfromfile)
load_data(DATA_FILE);
free(DATA_FILE);
int connected = init_connection(); int connected = init_connection();
if (connected != 0) if (connected != 0)
wprintw(prompt->window, "Auto-connect failed (error code %d)\n", connected); wprintw(prompt->window, "Auto-connect failed (error code %d)\n", connected);