Fix ICaptureProgressWatchers continuing after captor disposal.
This commit is contained in:
@@ -189,6 +189,10 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
captures = null;
|
||||
|
||||
// Prevent a capture being restarted after it has been canceled during disposal
|
||||
if (self.WillDispose)
|
||||
return false;
|
||||
|
||||
if (target != currentTarget)
|
||||
{
|
||||
if (currentTarget != null)
|
||||
|
||||
Reference in New Issue
Block a user