Revision 1b902f7d

b/libcacard/vcard_emul_nss.c
682 682
    SECMODModule *module = (SECMODModule *)arg;
683 683

  
684 684
    do {
685
        /*
686
         * XXX - the latency value doesn't matter one bit. you only get no
687
         * blocking (flags |= CKF_DONT_BLOCK) or PKCS11_WAIT_LATENCY (==500),
688
         * hard coded in coolkey.  And it isn't coolkey's fault - the timeout
689
         * value we pass get's dropped on the floor before C_WaitForSlotEvent
690
         * is called.
691
         */
685 692
        slot = SECMOD_WaitForAnyTokenEvent(module, 0, 500);
686 693
        if (slot == NULL) {
694
            /* this could be just a no event indication */
695
            if (PORT_GetError() == SEC_ERROR_NO_EVENT) {
696
                continue;
697
            }
687 698
            break;
688 699
        }
689 700
        vreader = vcard_emul_find_vreader_from_slot(slot);

Also available in: Unified diff