Fix handling of socket conection errors

This commit is contained in:
Martin Obrátil 2014-10-10 09:05:29 +02:00
parent 93f316b91f
commit c74a2ee950

View File

@ -59,6 +59,12 @@ namespace Blocshop.ScoketsForCordova
catch (SocketException ex)
{
this.DispatchCommandResult(new PluginResult(PluginResult.Status.IO_EXCEPTION, ex.Message));
socketStorage.Remove(socketKey);
}
catch (AggregateException ex)
{
this.DispatchCommandResult(new PluginResult(PluginResult.Status.IO_EXCEPTION, ex.InnerException.Message));
socketStorage.Remove(socketKey);
}
}