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