Fix: Connection disconnect_cb/error_cb were being called in the wrong order
Signed-off-by: Pedro Melo <melo@simplicidade.org>
This commit is contained in:
1 parent
e57cf0cab0
commit
6e6265053e
1 file changed
+2
-2
@@ -70,12 +70,12 @@ sub connect {
|
||||
on_connect => sub { $self->_connected(@_) },
|
||||
|
||||
on_connect_error => sub {
|
||||
$self->_disconnected;
|
||||
$self->_log_error('(connect failed) ' . ($_[1] || $!));
|
||||
$self->_disconnected;
|
||||
},
|
||||
on_error => sub {
|
||||
$self->_disconnected;
|
||||
$self->_log_error('(read error) ' . ($_[2] || $!));
|
||||
$self->_disconnected;
|
||||
},
|
||||
on_eof => sub {
|
||||
$self->_disconnected;
|
||||
|
||||
Reference in new issue
Block a user