Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 0042922

Browse files
committed
reset worker on exception
1 parent 16cdeda commit 0042922

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ServiceStack.Redis/RedisSentinel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ private RedisSentinelWorker GetValidSentinelWorker()
321321
OnWorkerError(ex);
322322

323323
lastEx = ex;
324+
this.worker = null;
324325
this.failures++;
325326
Interlocked.Increment(ref RedisState.TotalFailedSentinelWorkers);
326327
}

0 commit comments

Comments
 (0)