We have been expected 'LoadErrorCode.CantLookupHost' for wrong URL.
But in some emulator environment, we recieve 'LoadErrorCode.Unknown'
instead of 'LoadErrorCode.CantLookupHost'.
It is caused by network configuration of the emulator.
So this patch adds 'LoadErrorCode.Unknown' to the condition.
Change-Id: I3ed048563ba42a2fe446a1cd946dd82d974aac71
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
EventHandler<SmartCallbackLoadErrorArgs> onLoadError = (s, e) =>
{
var code = e.Code;
- if (code.GetType() == typeof(LoadErrorCode) && code.Equals(LoadErrorCode.CantLookupHost))
+ if (code.GetType() == typeof(LoadErrorCode) && (code.Equals(LoadErrorCode.CantLookupHost) || code.Equals(LoadErrorCode.Unknown)))
{
tcs.TrySetResult(true);
}