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

set signal handlers at more appropriate places

This commit is contained in:
Jfreegman 2014-09-22 19:58:08 -04:00
parent 032853b5c9
commit bf54cb36ef

View File

@ -720,6 +720,7 @@ void *thread_winref(void *data)
{
Tox *m = (Tox *) data;
uint8_t draw_count = 0;
init_signal_catchers();
while (true) {
draw_active_window(m);
@ -963,7 +964,6 @@ static useconds_t optimal_msleepval(uint64_t *looptimer, uint64_t *loopcount, ui
int main(int argc, char *argv[])
{
init_signal_catchers();
parse_args(argc, argv);
if (arg_opts.encrypt_data && arg_opts.unencrypt_data) {