File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -528,7 +528,7 @@ def __del__(self) -> None:
528528    except  Exception :
529529      pass 
530530    try :
531-       asyncio .get_running_loop ().create_task (self .aclose ())
531+       asyncio .get_running_loop ().run_until_complete (self .aclose ())
532532    except  Exception :
533533      pass 
534534
@@ -1789,6 +1789,7 @@ def __del__(self) -> None:
17891789      pass 
17901790
17911791    try :
1792-       asyncio .get_running_loop ().create_task (self .aclose ())
1792+       asyncio .get_running_loop ().run_until_complete (self .aclose ())
17931793    except  Exception :  # pylint: disable=broad-except 
1794-       pass 
1794+       pass 
1795+ 
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ async def __aexit__(
127127
128128  def  __del__ (self ) ->  None :
129129    try :
130-       asyncio .get_running_loop ().create_task (self .aclose ())
130+       asyncio .get_running_loop ().run_until_complete (self .aclose ())
131131    except  Exception :
132132      pass 
133133
@@ -398,3 +398,4 @@ def __exit__(
398398
399399  def  __del__ (self ) ->  None :
400400    self .close ()
401+ 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments