diff options
Diffstat (limited to 'game/04_init.rpy')
-rw-r--r-- | game/04_init.rpy | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/game/04_init.rpy b/game/04_init.rpy index 6724720..304f63a 100644 --- a/game/04_init.rpy +++ b/game/04_init.rpy @@ -112,14 +112,15 @@ init python: except: traceback.print_exc() stdout("FATAL ERROR, packet was not sent!") - try: - renpy.call_screen("msgbox", - "An unrecoverable error happened.\nPlease close and re-open the app.") - except: - pass - TERMINATE=True - if not CLOSING: - renpy.quit(relaunch=True) + if cnt >= MAX_RETRIES: + try: + renpy.call_screen("msgbox", + "An unrecoverable error happened.\nPlease close and re-open the app.") + except: + pass + TERMINATE=True + if not CLOSING: + renpy.quit(relaunch=True) return |