Skip to content

Commit

Permalink
Merge pull request apache#383 from aaronmell/SentinelFixes
Browse files Browse the repository at this point in the history
Sentinel GET-MASTER-ADDR-BY-NAME throws exception when service name i…
  • Loading branch information
mgravell committed May 16, 2016
2 parents 9cb8ac2 + 6b5381f commit 0b47916
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions StackExchange.Redis/StackExchange/Redis/ResultProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1235,8 +1235,13 @@ protected override bool SetResultCore(PhysicalConnection connection, Message mes
{
SetResult(message, null);
return true;
}
break;
}
break;
case ResultType.SimpleString:
//We don't want to blow up if the master is not found
if (result.IsNull)
return true;
break;
}
return false;
}
Expand Down

0 comments on commit 0b47916

Please sign in to comment.