clear quitMainLoop when we fall through the main loop
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index 5825eff..c1fa4a5 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -1034,6 +1034,7 @@
 	}
       Tk_DoOneEvent (0);
     }
+  quitMainLoop = 0;
 
   if (errorInCmd)
     {