Skip to content

Commit

Permalink
GH-835 Close before reconnecting
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Sep 29, 2024
1 parent adc1fa7 commit eaf0e28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2840,6 +2840,7 @@ namespace eosio {

connection_ptr c = shared_from_this();
strand.post([c]() {
c->_close(false, false);
my_impl->connections.reconnect(c);
});
return true;
Expand Down

0 comments on commit eaf0e28

Please sign in to comment.