From 7dc21809ba0bd4369bc8d7bea45bcc3c8bcb2896 Mon Sep 17 00:00:00 2001 From: kbengine Date: Tue, 25 Aug 2015 13:15:15 +0800 Subject: [PATCH] up --- Event.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Event.cs b/Event.cs index 9d67785..1745eb7 100644 --- a/Event.cs +++ b/Event.cs @@ -327,7 +327,8 @@ public static void processOutEvents() Dbg.ERROR_MSG("Event::processOutEvents: event=" + eobj.info.funcname + "\n" + e.ToString()); } - doingEvents_out.RemoveFirst(); + if(doingEvents_out.Count > 0) + doingEvents_out.RemoveFirst(); } } @@ -366,7 +367,8 @@ public static void processInEvents() Dbg.ERROR_MSG("Event::processInEvents: event=" + eobj.info.funcname + "\n" + e.ToString()); } - doingEvents_in.RemoveFirst(); + if(doingEvents_in.Count > 0) + doingEvents_in.RemoveFirst(); } }