Skip to content

Commit

Permalink
Merge pull request #106 from imjacocb/increase-cancel-wait-time
Browse files Browse the repository at this point in the history
increase the cancel wait time between thread
  • Loading branch information
jfdelnero authored Nov 7, 2024
2 parents 1350035 + a4a1cd3 commit 51a1e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb_gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ static void handle_setup_request(usb_gadget * ctx, struct usb_ctrlrequest* setup
while( mtp_context->cancel_req )
{
// Still Waiting the end of the current transfer...
if( cnt > 500 )
if( cnt > 2500 ) // wait 2.5s max for cancel_req from the io_thread

This comment has been minimized.

Copy link
@marcone

marcone Nov 7, 2024

Contributor

wouldn't this be 1.25 seconds? (2500 * 500 microseconds)

{
// Still blocked... Killing the link
PRINT_DEBUG("MTP_REQ_CANCEL : Stalled ... Killing the link...");
Expand Down

0 comments on commit 51a1e43

Please sign in to comment.