async handles should be closed on exit
This commit is contained in:
		
					parent
					
						
							
								a0605275b9
							
						
					
				
			
			
				commit
				
					
						d379b05890
					
				
			
		
					 2 changed files with 2 additions and 0 deletions
				
			
		|  | @ -84,6 +84,7 @@ AtomBindings::AtomBindings() { | |||
| } | ||||
| 
 | ||||
| AtomBindings::~AtomBindings() { | ||||
|   uv_close(reinterpret_cast<uv_handle_t*>(&call_next_tick_async_), nullptr); | ||||
| } | ||||
| 
 | ||||
| void AtomBindings::BindTo(v8::Isolate* isolate, | ||||
|  |  | |||
|  | @ -117,6 +117,7 @@ NodeBindings::~NodeBindings() { | |||
| 
 | ||||
|   // Clear uv.
 | ||||
|   uv_sem_destroy(&embed_sem_); | ||||
|   uv_close(reinterpret_cast<uv_handle_t*>(&dummy_uv_handle_), nullptr); | ||||
| } | ||||
| 
 | ||||
| void NodeBindings::Initialize() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Cheng Zhao
				Cheng Zhao