File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed 
rb/lib/selenium/webdriver/common Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -178,12 +178,12 @@ def callback_thread(params)
178178        rescue  Error ::WebDriverError ,  *CONNECTION_ERRORS  =>  e 
179179          WebDriver . logger . debug  "Callback aborted: #{ e . class } #{ e . message }  ,  id : :ws 
180180        rescue  StandardError  =>  e 
181-           # Do not allow an error raised during bidi interception to prevent potential deadlock 
182-           Thread . main . raise ( e )  unless  @closing  || params [ 'isBlocked' ] 
181+           # Main thread needs to know that it can stop waiting 
182+           Thread . main . raise ( e )  if  params [ 'isBlocked' ] 
183+           return  if  @closing 
183184
184-           condition  =  @closing  ? 'on closing'  : 'during interception' 
185185          bt  =  Array ( e . backtrace ) . first ( 5 ) . join ( "\n " ) 
186-           WebDriver . logger . error  "Callback error  #{ condition } #{ e . class } #{ e . message } \n #{ bt }  ,  id : :ws 
186+           WebDriver . logger . error  "Callback error: #{ e . class } #{ e . message } \n #{ bt }  ,  id : :ws 
187187        end 
188188      end 
189189
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments