Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions Rocket/Rocket.Core/Utils/RocketDispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,14 @@ private void FixedUpdate()
}
foreach (var a in currentActions)
{
a();
try
{
a();
}
catch (Exception ex)
{
Logging.Logger.LogException(ex, "An error occured while executing action");
}
}

List<DelayedQueueItem> currentDelayed = new List<DelayedQueueItem>();
Expand All @@ -100,7 +107,14 @@ private void FixedUpdate()
}
foreach (DelayedQueueItem item in currentDelayed)
{
item.action();
try
{
item.action();
}
catch (Exception ex)
{
Logging.Logger.LogException(ex, "An error occured while executing delayed action");
}
}

}
Expand Down