Explorar el Código

Merge pull request #15 from rocbomb/master

ConcurrentQueue isEmpty
tanghai hace 8 años
padre
commit
1fc315debb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Server/Model/Other/OneThreadSynchronizationContext.cs

+ 1 - 1
Server/Model/Other/OneThreadSynchronizationContext.cs

@@ -16,7 +16,7 @@ namespace Model
 
 
 		public void Update()
 		public void Update()
 		{
 		{
-			while (this.queue.Count > 0)
+			while (!this.queue.IsEmpty)
 			{
 			{
 				Action a;
 				Action a;
 				if (this.queue.TryDequeue(out a))
 				if (this.queue.TryDequeue(out a))