File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/com/zeroclue/jmeter/protocol/amqp Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 19
19
20
20
import com .rabbitmq .client .AMQP ;
21
21
import com .rabbitmq .client .Address ;
22
+ import com .rabbitmq .client .AlreadyClosedException ;
22
23
import com .rabbitmq .client .Channel ;
23
24
import com .rabbitmq .client .Connection ;
24
25
import com .rabbitmq .client .ConnectionFactory ;
26
+ import com .rabbitmq .client .ShutdownSignalException ;
25
27
26
28
public abstract class AMQPSampler extends AbstractSampler implements ThreadListener {
27
29
@@ -438,6 +440,10 @@ protected void cleanup() {
438
440
}
439
441
} catch (IOException e ) {
440
442
log .error ("Failed to close connection" , e );
443
+ } catch (AlreadyClosedException e ) {
444
+ log .error ("Connection already closed" , e );
445
+ } catch (ShutdownSignalException e ) {
446
+ log .error ("Connection shutdown by thread close" , e );
441
447
}
442
448
}
443
449
You can’t perform that action at this time.
0 commit comments