Преглед на файлове

Merge branch 'master' of https://github.com/egametang/Egametang

tanghai преди 8 години
родител
ревизия
635bf79c66
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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))