Commits

Lars Brubaker committed 1ac73a0

Put in some code to hopefully help release builds miss an error.

Comments (0)

Files changed (1)

Gui/AfterUiEvents.cs

         {
             if (recursionDepth <= 0)
             {
+#if DEBUG
                 throw new Exception("You must have called BlockEventExecution before you can ublock.");
+#else
+                recursionDepth = 0;
+                return;
+#endif
             }
 
             recursionDepth--;