Permalink
Browse files

possible null exception was tripping me up, fixed it.

  • Loading branch information...
1 parent 9af2f0f commit 41df76343a485fe289b82210fb26a8829018651c @khalidabuhakmeh khalidabuhakmeh committed Apr 17, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 Worker/Program.cs
View
@@ -95,6 +95,8 @@ private static void ProcessQueue()
{
var message = connection.Lists.BlockingRemoveFirst(0, new[] { "queue:execute" }, Int32.MaxValue);
+ if (message.Result == null) continue;
+
var command = ExecuteCommand.Deserialize(message.Result.Item2);
stopWatch.Start();

0 comments on commit 41df763

Please sign in to comment.