Merge pull request #3149 from DavePutz/issue2949

Issue#2949 Put in a check to prevent USB starvation by long calculations
This commit is contained in:
Dan Halbert 2020-07-21 13:29:10 -04:00 committed by GitHub
commit 7f27fcd63a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -444,6 +444,10 @@ STATIC size_t mpn_mul(mpz_dig_t *idig, mpz_dig_t *jdig, size_t jlen, mpz_dig_t *
}
ilen = id - oidig;
// check to prevent usb starvation
#ifdef RUN_BACKGROUND_TASKS
RUN_BACKGROUND_TASKS;
#endif
}
return ilen;