From cdc67e5a997d08158bcb24d51ca991838106bc7e Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 2 Oct 2014 00:48:43 +0200 Subject: Don't call libusb_exit() in irecv_open_with_ecid() on error The helper might be used multiple times and the library should not cause deinitialization of libusb before the user calls irecv_exit(). --- tools/irecovery.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/irecovery.c b/tools/irecovery.c index 9c153d8..1b1386a 100644 --- a/tools/irecovery.c +++ b/tools/irecovery.c @@ -518,6 +518,7 @@ int main(int argc, char* argv[]) { } irecv_close(client); + irecv_exit(); return 0; } -- cgit v1.1-32-gdbae