Skip to content

Commit

Permalink
better pull reconnection
Browse files Browse the repository at this point in the history
  • Loading branch information
garnier-quentin committed May 29, 2024
1 parent 53d2e59 commit 3739e06
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gorgone/gorgone/class/clientzmq.pm
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ sub new {
if (defined($connector->{logger}) && $connector->{logger}->is_debug()) {
$connector->{logger}->writeLogDebug('[core] JWK thumbprint = ' . $connector->{client_pubkey}->export_key_jwk_thumbprint('SHA256'));
}

$connector->{connect_loop} = EV::Loop->new();

$connectors->{ $options{identity} } = $connector;
bless $connector, $class;
Expand Down Expand Up @@ -403,7 +401,7 @@ sub send_message {
my ($self, %options) = @_;

if ($self->{handshake} == 0) {
$self->{logger}->writeLogDebug("[clientzmq] fd value = " . $sockets->{ $self->{identity} }->get_fd());
$self->{connect_loop} = EV::Loop->new();

if (!defined($self->{server_pubkey})) {
$self->{logger}->writeLogDebug("[clientzmq] $self->{identity} - get_server_pubkey sent [1]");
Expand Down

0 comments on commit 3739e06

Please sign in to comment.