diff options
| author | 2014-10-02 00:48:43 +0200 | |
|---|---|---|
| committer | 2014-10-02 00:48:43 +0200 | |
| commit | cdc67e5a997d08158bcb24d51ca991838106bc7e (patch) | |
| tree | 147ca386e1c36cf0d2c1161d5475755903c5ed6a /tools/irecovery.c | |
| parent | ec1e5190b4a2f9b56500fee0bcd747cedac1426b (diff) | |
| download | libirecovery-cdc67e5a997d08158bcb24d51ca991838106bc7e.tar.gz libirecovery-cdc67e5a997d08158bcb24d51ca991838106bc7e.tar.bz2 | |
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().
Diffstat (limited to 'tools/irecovery.c')
| -rw-r--r-- | tools/irecovery.c | 1 |
1 files changed, 1 insertions, 0 deletions
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[]) { | |||
| 518 | } | 518 | } |
| 519 | 519 | ||
| 520 | irecv_close(client); | 520 | irecv_close(client); |
| 521 | irecv_exit(); | ||
| 521 | 522 | ||
| 522 | return 0; | 523 | return 0; |
| 523 | } | 524 | } |
