home · contact · privacy
New client: Remove debugging code.
[plomrogue] / client_prototype.py
index 9a922caf9897d915122c0e71085301bc801886db..181468ddd9da07cd9155bbf878027add00ec8618 100644 (file)
@@ -189,10 +189,6 @@ def read_into_message_queue(string):
     if string[-1] is not "\n":
         new_open_end = True
     new_messages = string.splitlines()
-    logfile = open("log", "a")
-    logfile.write(str(new_messages) + "\n")
-    logfile.flush()
-    logfile.close()
     if message_queue["open_end"]:
         message_queue["messages"][-1] = message_queue["messages"][-1] + new_messages[0]
         del new_messages[0]
@@ -213,6 +209,7 @@ def cursed_main(stdscr):
         stdscr.timeout(delay)
         delay = delay * 2 if delay < 1000 else delay
         if cursed_main.redraw:
+            delay = 1
             draw_screen()
             cursed_main.redraw = False
         char = stdscr.getch()
@@ -274,10 +271,6 @@ except:
     print("SOMETHING WENT WRONG IN UNEXPECTED WAYS")
     raise
 finally:
-    logfile = open("log", "a")
-    logfile.write(str(message_queue))
-    logfile.flush()
-    logfile.close()
     if "file_out" in io:
         io["file_out"].close()
     if "file_in" in io: