Skip to content

Commit

Permalink
fix: close socket to prevent onCompletion call after the journal stre… (
Browse files Browse the repository at this point in the history
#4270)

fix: close socket to prevent onCompletion call after the journal streamer is destroyed
  • Loading branch information
BorysTheDev authored Dec 8, 2024
1 parent f9f93b1 commit 32ad00b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/cluster/outgoing_slot_migration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ class OutgoingMigration::SliceSlotMigration : private ProtocolClient {
}

void Cancel() {
cntx_.Cancel();
// Close socket for clean disconnect.
CloseSocket();
streamer_.Cancel();
}

Expand Down

0 comments on commit 32ad00b

Please sign in to comment.