reset timer pointers after stopping
authorHannes Gredler <hannes@gredler.at>
Mon, 17 Nov 2008 15:47:37 +0000 (16:47 +0100)
committerHannes Gredler <hannes@gredler.at>
Mon, 17 Nov 2008 15:47:37 +0000 (16:47 +0100)
lib/nameservice/src/nameservice.c

index afa2868..9b2d266 100644 (file)
@@ -473,7 +473,9 @@ name_destructor(void)
        free_all_list_entries(latlon_list);
 
        olsr_stop_timer(write_file_timer);
+       write_file_timer = NULL;
        olsr_stop_timer(msg_gen_timer);
+       msg_gen_timer = NULL;
 
        regfree(&regex_t_name);
        regfree(&regex_t_service);
@@ -551,6 +553,7 @@ olsr_namesvc_delete_db_entry(struct db_entry *db)
 
        olsr_start_write_file_timer();
        olsr_stop_timer(db->db_timer); /* stop timer if running */
+       db->db_timer = NULL;
        
        /* Delete */
        free_name_entry_list(&db->names);