]> git.treefish.org Git - mtxbot.git/blobdiff - src/mtxbot-post.py
Fix presence shutdown
[mtxbot.git] / src / mtxbot-post.py
index f7e536550ecc9432ced3f80b68b1ed9635b55485..d1f713f07bdd2cf2dbb788d3fbf60292b800741d 100755 (executable)
@@ -24,7 +24,7 @@ def send_line(line):
             posix.write(fifo, line)
             return
         except OSError as e:
             posix.write(fifo, line)
             return
         except OSError as e:
-            if e.errno == errno.ENXIO:
+            if e.errno == errno.ENXIO or e.errno == errno.EAGAIN:
                 time.sleep(1.0)
         finally:
             if fifo != -1:
                 time.sleep(1.0)
         finally:
             if fifo != -1: