Преглед изворни кода

SVC: Removed a Sleep that made no sense

- Would deadlock the calling thread
- Code would never get hit anyways
bunnei пре 11 година
родитељ
комит
c06d64528a
1 измењених фајлова са 1 додато и 6 уклоњено
  1. 1 6
      src/core/hle/svc.cpp

+ 1 - 6
src/core/hle/svc.cpp

@@ -103,12 +103,7 @@ static Result SendSyncRequest(Handle handle) {
 
 
     LOG_TRACE(Kernel_SVC, "called handle=0x%08X(%s)", handle, session->GetName().c_str());
     LOG_TRACE(Kernel_SVC, "called handle=0x%08X(%s)", handle, session->GetName().c_str());
 
 
-    ResultVal<bool> wait = session->SyncRequest();
-    if (wait.Succeeded() && *wait) {
-        Kernel::WaitCurrentThread_Sleep(); // TODO(bunnei): Is this correct?
-    }
-
-    return wait.Code().raw;
+    return session->SyncRequest().Code().raw;
 }
 }
 
 
 /// Close a handle
 /// Close a handle