Skip to content

Commit

Permalink
Add sleep in sockdrive_read_async for PC
Browse files Browse the repository at this point in the history
  • Loading branch information
caiiiycuk committed Oct 18, 2024
1 parent 449711c commit d9c458b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions native/jsdos/jsdos-drive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ uint8_t jsdos::SockDrive::Read_AbsoluteSector(uint32_t sectnum, void* data) {
while (async && errcode == 255) {
#ifdef JSDOS_X
sockdrive_delay();
#endif
#if !defined(EMSCRIPTEN) && !defined(ANDROID)
std::this_thread::sleep_for(std::chrono::milliseconds(1));
#endif
errcode = sockdrive_read_async_code(handle, sectnum, (uint8_t*) data);
}
Expand Down

0 comments on commit d9c458b

Please sign in to comment.