Skip to content

Commit ccb0790

Browse files
committed
Prevent orbuculum terminating on device loss
1 parent 07218e9 commit ccb0790

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Src/orbuculum.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,8 +867,10 @@ static void _usb_callback( struct libusb_transfer *t )
867867
( t->status != LIBUSB_TRANSFER_CANCELLED )
868868
)
869869
{
870-
genericsReport( V_WARN, "Errored out with status %d (%s)" EOL, t->status, libusb_error_name( t->status ) );
871-
exit( 0 );
870+
if ( !_r.errored )
871+
{
872+
genericsReport( V_WARN, "Errored out with status %d (%s)" EOL, t->status, libusb_error_name( t->status ) );
873+
}
872874

873875
_r.errored = true;
874876
}

0 commit comments

Comments
 (0)