mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00: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() {
|
void Cancel() {
|
||||||
cntx_.Cancel();
|
// Close socket for clean disconnect.
|
||||||
|
CloseSocket();
|
||||||
streamer_.Cancel();
|
streamer_.Cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue