diff --git a/examples/nfc-poll.c b/examples/nfc-poll.c index 54e6967..a9f173d 100644 --- a/examples/nfc-poll.c +++ b/examples/nfc-poll.c @@ -137,10 +137,10 @@ main (int argc, const char *argv[]) }; } } else { + nfc_disconnect (pnd); nfc_perror (pnd, "nfc_initiator_poll_targets"); exit (EXIT_FAILURE); } - nfc_disconnect (pnd); }