From c81e737d856c0e7630a1d40d3fde3a5fc416674d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 17 Jul 2004 20:44:37 +0000 Subject: [PATCH] fix thread busy looping if bus/usb/devices isn't available --- .../src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp index f4fc5c7ead..3b8dfa95d1 100644 --- a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp +++ b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp @@ -171,7 +171,10 @@ void MemoryCardDriverThreaded_Linux::ResetUsbStorage() void MemoryCardDriverThreaded_Linux::MountThreadDoOneUpdate() { if( m_fd == -1 ) + { + usleep( 50000 ); return; + } if( m_bForceRedetect ) {