Added try/catch to transport update loop
This commit is contained in:
parent
b84448ea11
commit
63de39ebf7
1 changed files with 24 additions and 16 deletions
|
|
@ -181,9 +181,17 @@ namespace LightReflectiveMirror
|
||||||
}
|
}
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
if (_updateMethod != null) _updateMethod.Invoke(transport, null);
|
if (_updateMethod != null) _updateMethod.Invoke(transport, null);
|
||||||
if (_lateUpdateMethod != null) _lateUpdateMethod.Invoke(transport, null);
|
if (_lateUpdateMethod != null) _lateUpdateMethod.Invoke(transport, null);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
WriteLogMessage("Error During Transport Update! " + e, ConsoleColor.Red);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
_currentHeartbeatTimer++;
|
_currentHeartbeatTimer++;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue