diff options
Diffstat (limited to 'extensions/Push/lib')
-rw-r--r-- | extensions/Push/lib/Connector/AMQP.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/Push/lib/Connector/AMQP.pm b/extensions/Push/lib/Connector/AMQP.pm index 851d4febf..7b7d4aa72 100644 --- a/extensions/Push/lib/Connector/AMQP.pm +++ b/extensions/Push/lib/Connector/AMQP.pm @@ -17,7 +17,6 @@ use Bugzilla::Extension::Push::Constants; use Bugzilla::Extension::Push::Util; use Bugzilla::Util qw(generate_random_password); use DateTime; -use Net::RabbitMQ; sub init { my ($self) = @_; @@ -107,6 +106,7 @@ sub _connect { $self->stop(); $logger->debug('AMQP: Connecting to RabbitMQ ' . $config->{host} . ':' . $config->{port}); + require Net::RabbitMQ; my $mq = Net::RabbitMQ->new(); $mq->connect( $config->{host}, |