Commit 6b5381f3 authored by amell's avatar amell

Sentinel GET-MASTER-ADDR-BY-NAME throws exception when service name is not...

Sentinel GET-MASTER-ADDR-BY-NAME throws exception when service name is not being watched by sentinel.
parent c3bf2bd5
...@@ -1235,8 +1235,13 @@ protected override bool SetResultCore(PhysicalConnection connection, Message mes ...@@ -1235,8 +1235,13 @@ protected override bool SetResultCore(PhysicalConnection connection, Message mes
{ {
SetResult(message, null); SetResult(message, null);
return true; 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; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment