diff --git a/src/server/cluster/outgoing_slot_migration.cc b/src/server/cluster/outgoing_slot_migration.cc index b0d0ce794..1704fbe12 100644 --- a/src/server/cluster/outgoing_slot_migration.cc +++ b/src/server/cluster/outgoing_slot_migration.cc @@ -81,7 +81,8 @@ class OutgoingMigration::SliceSlotMigration : private ProtocolClient { } void Cancel() { - cntx_.Cancel(); + // Close socket for clean disconnect. + CloseSocket(); streamer_.Cancel(); }