[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Flush after writing bridge assignments to file.
commit 8f06618812b769b93eceb9eb78fc2026d2e76b8c
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Tue Nov 5 08:42:27 2013 +0000
Flush after writing bridge assignments to file.
---
lib/bridgedb/Main.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/bridgedb/Main.py b/lib/bridgedb/Main.py
index 4f5203f..0d7200a 100644
--- a/lib/bridgedb/Main.py
+++ b/lib/bridgedb/Main.py
@@ -420,6 +420,7 @@ def startup(cfg, options):
f.write("bridge-pool-assignment %s\n" %
time.strftime("%Y-%m-%d %H:%M:%S"))
splitter.dumpAssignments(f)
+ f.flush()
f.close()
except IOError:
logging.info("I/O error while writing assignments")
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits