diff options
| author | 2015-01-18 14:00:10 -0500 | |
|---|---|---|
| committer | 2015-01-21 20:47:45 -0500 | |
| commit | c06d64528a666f450e42cb1792ac995fc1697e76 (patch) | |
| tree | ed18fd74aff9a4b1bb8d344252fd93f3088a3ed2 /src/core | |
| parent | AddressArbiter: Changed to Kernel::Object, big cleanup, removed code that mad... (diff) | |
| download | yuzu-c06d64528a666f450e42cb1792ac995fc1697e76.tar.gz yuzu-c06d64528a666f450e42cb1792ac995fc1697e76.tar.xz yuzu-c06d64528a666f450e42cb1792ac995fc1697e76.zip | |
SVC: Removed a Sleep that made no sense
- Would deadlock the calling thread
- Code would never get hit anyways
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/svc.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index cf029bf69..5e9c38973 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -103,12 +103,7 @@ static Result SendSyncRequest(Handle handle) { | |||
| 103 | 103 | ||
| 104 | LOG_TRACE(Kernel_SVC, "called handle=0x%08X(%s)", handle, session->GetName().c_str()); | 104 | LOG_TRACE(Kernel_SVC, "called handle=0x%08X(%s)", handle, session->GetName().c_str()); |
| 105 | 105 | ||
| 106 | ResultVal<bool> wait = session->SyncRequest(); | 106 | return session->SyncRequest().Code().raw; |
| 107 | if (wait.Succeeded() && *wait) { | ||
| 108 | Kernel::WaitCurrentThread_Sleep(); // TODO(bunnei): Is this correct? | ||
| 109 | } | ||
| 110 | |||
| 111 | return wait.Code().raw; | ||
| 112 | } | 107 | } |
| 113 | 108 | ||
| 114 | /// Close a handle | 109 | /// Close a handle |