eio: cleanup thread pointer on thread finish.

This commit is contained in:
Cedric Bail 2016-07-15 17:00:33 -07:00
parent 73bb6d244f
commit bf369ba661
2 changed files with 2 additions and 0 deletions

View File

@ -260,6 +260,7 @@ void
eio_file_unregister(Eio_File *common)
{
tracked_thread = eina_list_remove(tracked_thread, common);
common->thread = NULL;
}
/**

View File

@ -310,6 +310,7 @@ eio_file_error(Eio_File *common)
{
if (common->error_cb)
common->error_cb((void*) common->data, common, common->error);
common->thread = NULL;
}
void