Sfoglia il codice sorgente

Merge pull request #15 from rocbomb/master

ConcurrentQueue isEmpty
tanghai 8 anni fa
parent
commit
1fc315debb
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Server/Model/Other/OneThreadSynchronizationContext.cs

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

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