Skip to content

Commit

Permalink
Merge branch 'release/0.7.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderdean committed Aug 11, 2015
2 parents a1e4333 + 7659c65 commit 00e7515
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 0.7.0 (2015-08-11)
--------------------------
Ensured synchronous flush always waits for the task queue to empty (#142)

Version 0.7.0 (2015-08-07)
--------------------------
Added SelfDescribingJson class (#140)
Expand Down
2 changes: 1 addition & 1 deletion snowplow_tracker/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"""


__version_info__ = (0, 7, 0)
__version_info__ = (0, 7, 1)
__version__ = ".".join(str(x) for x in __version_info__)
4 changes: 3 additions & 1 deletion snowplow_tracker/emitters.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,11 @@ def __init__(
t.start()

def sync_flush(self):
while len(self.buffer) > 0:
while True:
self.flush()
self.queue.join()
if len(self.buffer) < 1:
break

def flush(self):
"""
Expand Down

0 comments on commit 00e7515

Please sign in to comment.