mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			Merge pull request #6533 from c1728p9/timeout_fix
Fix deep sleep locking for Timeout classpull/6561/head
						commit
						fff7299f63
					
				| 
						 | 
				
			
			@ -18,7 +18,9 @@
 | 
			
		|||
namespace mbed {
 | 
			
		||||
 | 
			
		||||
void Timeout::handler() {
 | 
			
		||||
    _function.call();
 | 
			
		||||
    Callback<void()> local = _function;
 | 
			
		||||
    detach();
 | 
			
		||||
    local.call();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
} // namespace mbed
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue