Re-run Mojo::Loop everytime it dies, not just once.
This commit is contained in:
@@ -76,7 +76,7 @@ sub think {
|
|||||||
$self->init();
|
$self->init();
|
||||||
|
|
||||||
$self->_add_getUpdates_handler;
|
$self->_add_getUpdates_handler;
|
||||||
Mojo::IOLoop->start unless Mojo::IOLoop->is_running;
|
Mojo::IOLoop->start until Mojo::IOLoop->is_running;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user