OBT/1.0.11
Fixed a bug that caused the server to stop responding Fixed an issue in gap.Update that may cause the server to crash
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
@@ -349,6 +350,21 @@ namespace FarseerPhysics.Dynamics
|
||||
}
|
||||
}
|
||||
|
||||
private static ConcurrentQueue<Body> DisableQueue = new ConcurrentQueue<Body>();
|
||||
|
||||
public static void QueueDisable()
|
||||
{
|
||||
while (DisableQueue.TryDequeue(out var pendingbody))
|
||||
{
|
||||
pendingbody.Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
public void AddToDisableQueue()
|
||||
{
|
||||
DisableQueue.Enqueue(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create all proxies.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user