nfctype4: Do not release target after a succesful tag write
authorSamuel Ortiz <sameo@linux.intel.com>
Tue, 29 Oct 2013 23:35:36 +0000 (00:35 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 29 Oct 2013 23:35:36 +0000 (00:35 +0100)
There is no reason for releasing a target after tag writing succeeded.
Especially since check presence still needs the link.

plugins/nfctype4.c

index 4c599a7..349dd78 100644 (file)
@@ -587,7 +587,6 @@ static int data_write_cb(uint8_t *resp, int length, void *data)
 
        if (cookie->ndef->offset >= cookie->ndef->length) {
                DBG("Done writing");
-               near_adapter_disconnect(cookie->adapter_idx);
 
                if (cookie->cb)
                        cookie->cb(cookie->adapter_idx, cookie->target_idx, 0);