Skip to content

Commit

Permalink
fix segfault when disconnect
Browse files Browse the repository at this point in the history
Signed-off-by: Yuji Ito <llamerada.jp@gmail.com>
  • Loading branch information
llamerada-jp committed Jun 30, 2023
1 parent b4667d2 commit 3b995c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/seed_accessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ void SeedAccessor::relay_packet(std::unique_ptr<const Packet> packet) {
}

void SeedAccessor::trigger() {
// destructor has called
if (!link) {
return;
}

// wait to finish authentication
if (running_auth) {
return;
Expand Down

0 comments on commit 3b995c8

Please sign in to comment.