Skip to content

Commit ed75acf

Browse files
committed
Fixed token propagation
1 parent 9a21b1d commit ed75acf

File tree

1 file changed

+1
-1
lines changed
  • src/cluster/DotNext.Net.Cluster/Net/Cluster/Consensus/Raft

1 file changed

+1
-1
lines changed

src/cluster/DotNext.Net.Cluster/Net/Cluster/Consensus/Raft/RaftCluster.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ protected async ValueTask<Result<HeartbeatResult>> InstallSnapshotAsync<TSnapsho
558558
};
559559
}
560560
}
561-
catch (OperationCanceledException e)
561+
catch (OperationCanceledException e) when (e.CancellationToken == tokenSource.Token)
562562
{
563563
throw new OperationCanceledException(e.Message, e, tokenSource.CancellationOrigin);
564564
}

0 commit comments

Comments
 (0)