Proper exception rethrowing in AI Steering system.
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Runtime.ExceptionServices;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Content.Server.GameObjects.Components.Access;
|
using Content.Server.GameObjects.Components.Access;
|
||||||
@@ -151,6 +152,7 @@ namespace Content.Server.GameObjects.EntitySystems.AI.Steering
|
|||||||
case null:
|
case null:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
ExceptionDispatchInfo.Capture(request.Job.Exception).Throw();
|
||||||
throw request.Job.Exception;
|
throw request.Job.Exception;
|
||||||
}
|
}
|
||||||
_pathfindingRequests.Remove(entity);
|
_pathfindingRequests.Remove(entity);
|
||||||
|
|||||||
Reference in New Issue
Block a user