diff --git a/worker/src/Worker/Program.cs b/worker/src/Worker/Program.cs index 634b937..78ccff4 100644 --- a/worker/src/Worker/Program.cs +++ b/worker/src/Worker/Program.cs @@ -31,7 +31,8 @@ namespace Worker // Reconnect redis if down if (redisConn == null || !redisConn.IsConnected) { Console.WriteLine("Reconnecting Redis"); - redis = OpenRedisConnection("redis").GetDatabase(); + redisConn = OpenRedisConnection("redis"); + redis = redisConn.GetDatabase(); } string json = redis.ListLeftPopAsync("votes").Result; if (json != null)