mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	SVC: Removed a Sleep that made no sense
- Would deadlock the calling thread - Code would never get hit anyways
This commit is contained in:
		@@ -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();
 | 
					    return session->SyncRequest().Code().raw;
 | 
				
			||||||
    if (wait.Succeeded() && *wait) {
 | 
					 | 
				
			||||||
        Kernel::WaitCurrentThread_Sleep(); // TODO(bunnei): Is this correct?
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return wait.Code().raw;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/// Close a handle
 | 
					/// Close a handle
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user