adjust the locking for animations maybe fix the bug?
This commit is contained in:
parent
57526c862c
commit
496831e428
1 changed files with 6 additions and 5 deletions
|
|
@ -20,12 +20,13 @@ namespace BSB.bottypes
|
||||||
|
|
||||||
public override void ResetAnimations()
|
public override void ResetAnimations()
|
||||||
{
|
{
|
||||||
|
List<UUID> copyAnyimations = active_animations;
|
||||||
|
foreach (UUID ani in copyAnyimations)
|
||||||
|
{
|
||||||
|
Client.Self.AnimationStop(ani, true);
|
||||||
|
}
|
||||||
lock (active_animations)
|
lock (active_animations)
|
||||||
{
|
{
|
||||||
foreach (UUID ani in active_animations)
|
|
||||||
{
|
|
||||||
Client.Self.AnimationStop(ani, true);
|
|
||||||
}
|
|
||||||
active_animations.Clear();
|
active_animations.Clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue