C test: cancel thread on unload
This commit is contained in:
@@ -457,7 +457,7 @@ def prof_init(version, status, account_name, fulljid):
|
|||||||
[ "add", "remove" ]
|
[ "add", "remove" ]
|
||||||
)
|
)
|
||||||
|
|
||||||
prof.register_timed(timed_callback, 30)
|
prof.register_timed(timed_callback, 5)
|
||||||
|
|
||||||
|
|
||||||
def prof_on_start():
|
def prof_on_start():
|
||||||
|
|||||||
@@ -609,7 +609,7 @@ prof_init(const char * const version, const char * const status, const char *con
|
|||||||
char *completer_ac[] = { "add", "remove", NULL };
|
char *completer_ac[] = { "add", "remove", NULL };
|
||||||
prof_completer_add("/c-test completer", completer_ac);
|
prof_completer_add("/c-test completer", completer_ac);
|
||||||
|
|
||||||
prof_register_timed(timed_callback, 30);
|
prof_register_timed(timed_callback, 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -631,6 +631,7 @@ prof_on_unload(void)
|
|||||||
{
|
{
|
||||||
create_win();
|
create_win();
|
||||||
prof_win_show(plugin_win, "fired -> prof_on_unload");
|
prof_win_show(plugin_win, "fired -> prof_on_unload");
|
||||||
|
pthread_cancel(worker_thread);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user