home · contact · privacy
Server/py: Flush PONG! message.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 23 Feb 2015 01:07:38 +0000 (02:07 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 23 Feb 2015 01:07:38 +0000 (02:07 +0100)
plomrogue-server.py

index 6713905fc06c63433c57c5599aeb31075bc83f52..c7d5ddead9351e40025904fdf87014c14cc51105 100755 (executable)
@@ -76,6 +76,7 @@ def obey(cmd, io_db, prefix, replay_file=None, do_record=False):
         pass
     elif "PING" == tokens[0] and 1 == len(tokens):
         io_db["file_out"].write("PONG\n")
+        io_db["file_out"].flush()
     elif "QUIT" == tokens[0] and 1 == len(tokens):
         if do_record:
             record("# " + cmd, io_db)