mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
fix: close socket to prevent onCompletion call after the journal stre… (#4270)
fix: close socket to prevent onCompletion call after the journal streamer is destroyed
This commit is contained in:
parent
f9f93b108c
commit
32ad00b09a
1 changed files with 2 additions and 1 deletions
|
@ -81,7 +81,8 @@ class OutgoingMigration::SliceSlotMigration : private ProtocolClient {
|
|||
}
|
||||
|
||||
void Cancel() {
|
||||
cntx_.Cancel();
|
||||
// Close socket for clean disconnect.
|
||||
CloseSocket();
|
||||
streamer_.Cancel();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue