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

Commit 0a610e0

Browse files
committed
Don't try restart disposed instance
1 parent c6fa5a2 commit 0a610e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ServiceStack.Redis/RedisPubSubServer.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ private void RunLoop()
204204
if (KeepAliveRetryAfterMs != null)
205205
{
206206
Thread.Sleep(KeepAliveRetryAfterMs.Value);
207-
Start();
207+
208+
if (Interlocked.CompareExchange(ref status, 0, 0) != Status.Disposed)
209+
Start();
208210
}
209211
}
210212
}

0 commit comments

Comments
 (0)