Remove the AllocateSystemIOPorts call
It is no longer needed and it is crashing.
This commit is contained in:
		
					parent
					
						
							
								109e2c760f
							
						
					
				
			
			
				commit
				
					
						c470e758cc
					
				
			
		
					 1 changed files with 0 additions and 4 deletions
				
			
		|  | @ -92,10 +92,6 @@ using atom::api::PowerMonitor; | |||
| 
 | ||||
| void Initialize(v8::Local<v8::Object> exports, v8::Local<v8::Value> unused, | ||||
|                 v8::Local<v8::Context> context, void* priv) { | ||||
| #if defined(OS_MACOSX) | ||||
|   base::PowerMonitorDeviceSource::AllocateSystemIOPorts(); | ||||
| #endif | ||||
| 
 | ||||
|   v8::Isolate* isolate = context->GetIsolate(); | ||||
|   mate::Dictionary dict(isolate, exports); | ||||
|   dict.Set("powerMonitor", PowerMonitor::Create(isolate)); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Cheng Zhao
				Cheng Zhao