Fix a possible crash when calling AdapterRequestJob::Kill().
This commit is contained in:
		
					parent
					
						
							
								8bcb545119
							
						
					
				
			
			
				commit
				
					
						640f45a5b3
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -30,8 +30,8 @@ void AdapterRequestJob::Start() { | |||
| } | ||||
| 
 | ||||
| void AdapterRequestJob::Kill() { | ||||
|   DCHECK(real_job_); | ||||
|   real_job_->Kill(); | ||||
|   if (real_job_)  // Kill could happen when real_job_ is created.
 | ||||
|     real_job_->Kill(); | ||||
| } | ||||
| 
 | ||||
| bool AdapterRequestJob::ReadRawData(net::IOBuffer* buf, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Cheng Zhao
				Cheng Zhao