1
0
Fork 0
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:
Borys 2024-12-08 11:57:08 +02:00 committed by GitHub
parent f9f93b108c
commit 32ad00b09a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,7 +81,8 @@ class OutgoingMigration::SliceSlotMigration : private ProtocolClient {
}
void Cancel() {
cntx_.Cancel();
// Close socket for clean disconnect.
CloseSocket();
streamer_.Cancel();
}