Handle NOT_SUPPORT return value from WaitForSlot

This commit is contained in:
Martin Willi
2010-08-04 09:26:20 +02:00
parent 66033012c9
commit fe876b24d9
@@ -202,7 +202,7 @@ static job_requeue_t dispatch_slot_events(lib_entry_t *entry)
old = thread_cancelability(TRUE);
rv = entry->lib->f->C_WaitForSlotEvent(0, &slot, NULL);
thread_cancelability(old);
if (rv == CKR_NO_EVENT)
if (rv == CKR_FUNCTION_NOT_SUPPORTED || rv == CKR_NO_EVENT)
{
DBG1(DBG_CFG, "module '%s' does not support hot-plugging, cancelled",
entry->name);