Commits

Lars Brubaker  committed 1ac73a0

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

  • Participants
  • Parent commits 5dbd091

Comments (0)

Files changed (1)

File 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--;