| 582 if (bud_list_cache_exists(zgc)) |
582 if (bud_list_cache_exists(zgc)) |
| 583 do_import(NULL, zgc); |
583 do_import(NULL, zgc); |
| 584 process_anyone(); |
584 process_anyone(); |
| 585 process_zsubs(); |
585 process_zsubs(); |
| 586 |
586 |
| 587 nottimer = gtk_timeout_add(100, check_notify, NULL); |
587 nottimer = g_timeout_add(100, check_notify, NULL); |
| 588 loctimer = gtk_timeout_add(2000, check_loc, NULL); |
588 loctimer = g_timeout_add(2000, check_loc, NULL); |
| 589 } |
589 } |
| 590 |
590 |
| 591 static void write_zsubs() |
591 static void write_zsubs() |
| 592 { |
592 { |
| 593 GSList *s = subscrips; |
593 GSList *s = subscrips; |
| 667 s = s->next; |
667 s = s->next; |
| 668 } |
668 } |
| 669 g_slist_free(subscrips); |
669 g_slist_free(subscrips); |
| 670 |
670 |
| 671 if (nottimer) |
671 if (nottimer) |
| 672 gtk_timeout_remove(nottimer); |
672 g_source_remove(nottimer); |
| 673 nottimer = 0; |
673 nottimer = 0; |
| 674 if (loctimer) |
674 if (loctimer) |
| 675 gtk_timeout_remove(loctimer); |
675 g_source_remove(loctimer); |
| 676 loctimer = 0; |
676 loctimer = 0; |
| 677 zgc = NULL; |
677 zgc = NULL; |
| 678 z_call(ZCancelSubscriptions(0)); |
678 z_call(ZCancelSubscriptions(0)); |
| 679 z_call(ZUnsetLocation()); |
679 z_call(ZUnsetLocation()); |
| 680 z_call(ZClosePort()); |
680 z_call(ZClosePort()); |