When starting Mojolicious::Lite app with morbo (code from chat.pl) Client object gets destroyed right after start
Starting AMQP
Starting app
-- Emit connect in Mojo::IOLoop::Client (1)
-- Emit connect in Mojo::RabbitMQ::Client (1)
Connect
-> "AMQP\1\1\0\t"
Destroying client at /usr/local/lib/perl5/site_perl/Mojo/RabbitMQ/Client.pm line 605.
Mojo::RabbitMQ::Client::DESTROY(Mojo::RabbitMQ::Client=HASH(0x8080b0378)) called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/Poll.pm line 143
eval {...} called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/Poll.pm line 143
eval {...} called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/Poll.pm line 143
Mojo::Reactor::Poll::_try(Mojo::Reactor::EV=HASH(0x80629e480), "I/O watcher", "*Mojo::IOLoop::Stream::new", 1) called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/EV.pm line 49
Mojo::Reactor::EV::ANON(EV::IO=SCALAR(0x80809a708), 2) called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/EV.pm line 25
eval {...} called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/EV.pm line 25
Mojo::Reactor::EV::start(Mojo::Reactor::EV=HASH(0x80629e480)) called at /usr/local/lib/perl5/site_perl/Mojo/IOLoop.pm line 140
Mojo::IOLoop::start(Mojo::IOLoop=HASH(0x8061f1b70)) called at /usr/local/lib/perl5/site_perl/Mojo/Server/Daemon.pm line 43
Mojo::Server::Daemon::run(Mojo::Server::Daemon=HASH(0x803186258)) called at /usr/local/lib/perl5/site_perl/Mojo/Server/Morbo.pm line 69
Mojo::Server::Morbo::_spawn(Mojo::Server::Morbo=HASH(0x8020e2528)) called at /usr/local/lib/perl5/site_perl/Mojo/Server/Morbo.pm line 54
Mojo::Server::Morbo::_manage(Mojo::Server::Morbo=HASH(0x8020e2528)) called at /usr/local/lib/perl5/site_perl/Mojo/Server/Morbo.pm line 34
Mojo::Server::Morbo::run(Mojo::Server::Morbo=HASH(0x8020e2528), "./BinanceInfo") called at /usr/local/bin/morbo line 19
-- Emit write in Mojo::IOLoop::Stream (0)
-- Emit drain in Mojo::IOLoop::Stream (0)
-- Emit read in Mojo::IOLoop::Stream (1)
-- Emit error in Mojo::Reactor::EV (1)
Mojo::Reactor::EV: I/O watcher failed: Can't call method "_read" on an undefined value at /usr/local/lib/perl5/site_perl/Mojo/RabbitMQ/Client.pm line 386.
Hello
When starting Mojolicious::Lite app with morbo (code from chat.pl) Client object gets destroyed right after start Starting AMQP Starting app -- Emit connect in Mojo::IOLoop::Client (1) -- Emit connect in Mojo::RabbitMQ::Client (1) Connect -> "AMQP\1\1\0\t" Destroying client at /usr/local/lib/perl5/site_perl/Mojo/RabbitMQ/Client.pm line 605. Mojo::RabbitMQ::Client::DESTROY(Mojo::RabbitMQ::Client=HASH(0x8080b0378)) called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/Poll.pm line 143 eval {...} called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/Poll.pm line 143 eval {...} called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/Poll.pm line 143 Mojo::Reactor::Poll::_try(Mojo::Reactor::EV=HASH(0x80629e480), "I/O watcher", "*Mojo::IOLoop::Stream::new", 1) called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/EV.pm line 49 Mojo::Reactor::EV::ANON(EV::IO=SCALAR(0x80809a708), 2) called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/EV.pm line 25 eval {...} called at /usr/local/lib/perl5/site_perl/Mojo/Reactor/EV.pm line 25 Mojo::Reactor::EV::start(Mojo::Reactor::EV=HASH(0x80629e480)) called at /usr/local/lib/perl5/site_perl/Mojo/IOLoop.pm line 140 Mojo::IOLoop::start(Mojo::IOLoop=HASH(0x8061f1b70)) called at /usr/local/lib/perl5/site_perl/Mojo/Server/Daemon.pm line 43 Mojo::Server::Daemon::run(Mojo::Server::Daemon=HASH(0x803186258)) called at /usr/local/lib/perl5/site_perl/Mojo/Server/Morbo.pm line 69 Mojo::Server::Morbo::_spawn(Mojo::Server::Morbo=HASH(0x8020e2528)) called at /usr/local/lib/perl5/site_perl/Mojo/Server/Morbo.pm line 54 Mojo::Server::Morbo::_manage(Mojo::Server::Morbo=HASH(0x8020e2528)) called at /usr/local/lib/perl5/site_perl/Mojo/Server/Morbo.pm line 34 Mojo::Server::Morbo::run(Mojo::Server::Morbo=HASH(0x8020e2528), "./BinanceInfo") called at /usr/local/bin/morbo line 19 -- Emit write in Mojo::IOLoop::Stream (0) -- Emit drain in Mojo::IOLoop::Stream (0) -- Emit read in Mojo::IOLoop::Stream (1) -- Emit error in Mojo::Reactor::EV (1) Mojo::Reactor::EV: I/O watcher failed: Can't call method "_read" on an undefined value at /usr/local/lib/perl5/site_perl/Mojo/RabbitMQ/Client.pm line 386.