Skip to content

Commit

Permalink
Prevent orbuculum terminating on device loss
Browse files Browse the repository at this point in the history
  • Loading branch information
mubes committed Aug 18, 2022
1 parent 07218e9 commit ccb0790
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Src/orbuculum.c
Original file line number Diff line number Diff line change
Expand Up @@ -867,8 +867,10 @@ static void _usb_callback( struct libusb_transfer *t )
( t->status != LIBUSB_TRANSFER_CANCELLED )
)
{
genericsReport( V_WARN, "Errored out with status %d (%s)" EOL, t->status, libusb_error_name( t->status ) );
exit( 0 );
if ( !_r.errored )
{
genericsReport( V_WARN, "Errored out with status %d (%s)" EOL, t->status, libusb_error_name( t->status ) );
}

_r.errored = true;
}
Expand Down

0 comments on commit ccb0790

Please sign in to comment.