avoid thread termination by catching exception thrown on failed times GET
This commit is contained in:
parent
97d4fa9faf
commit
50e9261267
@ -472,6 +472,9 @@ namespace BreCalClient
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
|
||||||
if (shipcalls != null)
|
if (shipcalls != null)
|
||||||
{
|
{
|
||||||
foreach (Shipcall shipcall in shipcalls)
|
foreach (Shipcall shipcall in shipcalls)
|
||||||
@ -511,6 +514,14 @@ namespace BreCalClient
|
|||||||
this.FilterShipcalls();
|
this.FilterShipcalls();
|
||||||
await uiLock.WaitAsync();
|
await uiLock.WaitAsync();
|
||||||
this.UpdateUI();
|
this.UpdateUI();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(Exception ex)
|
||||||
|
{
|
||||||
|
_log.Error(ex);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
uiLock.Release();
|
uiLock.Release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user