Don't try to close devices when removing them from the session

That's the frontend's job.
This commit is contained in:
Bert Vermeulen 2013-04-28 22:35:42 +02:00
parent 115f829396
commit 681803dfde
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ SR_API int sr_session_dev_remove_all(void)
return SR_ERR_BUG;
}
g_slist_free_full(session->devs, (GDestroyNotify)sr_dev_close);
g_slist_free(session->devs);
session->devs = NULL;
return SR_OK;