File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -86,12 +86,14 @@ public function sendAsyncRequest(RequestInterface $request)
8686
8787        $ onFulfilledfunction  (ResponseInterface $ responseuse  ($ event$ stack
8888            $ this collectResponseInformations ($ response$ event$ stack
89+             $ eventstop ();
8990
9091            return  $ response
9192        };
9293
9394        $ onRejectedfunction  (\Exception   $ exceptionuse  ($ event$ stack
9495            $ this collectExceptionInformations ($ exception$ event$ stack
96+             $ eventstop ();
9597
9698            throw  $ exception
9799        };
@@ -100,8 +102,11 @@ public function sendAsyncRequest(RequestInterface $request)
100102
101103        try  {
102104            return  $ this client ->sendAsyncRequest ($ requestthen ($ onFulfilled$ onRejected
103-         } finally  {
105+         } catch  ( \ Exception   $ e )  {
104106            $ eventstop ();
107+ 
108+             throw  $ e
109+         } finally  {
105110            if  ($ activateStack
106111                //We only activate the stack when created by the StackPlugin. 
107112                $ this collector ->activateStack ($ stack
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments