From 83524539fd188570db9d7ae65bfe6802cb0e0df9 Mon Sep 17 00:00:00 2001 From: Uriziel Date: Mon, 12 Nov 2012 23:30:56 +0100 Subject: [PATCH] NeedMoreCucumbersException --- syncplay/__init__.py | 2 +- syncplay/client.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/syncplay/__init__.py b/syncplay/__init__.py index 066d104..4862863 100644 --- a/syncplay/__init__.py +++ b/syncplay/__init__.py @@ -1,3 +1,3 @@ -version = '1.1.4' +version = '1.1.5' milestone = 'Tequila' projectURL = 'http://uriziel.github.com/syncplay/' \ No newline at end of file diff --git a/syncplay/client.py b/syncplay/client.py index 0802aa3..42b0f0f 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -213,7 +213,9 @@ class SyncplayClient(object): return 0.0 position = self._playerPosition if(not self._playerPaused): - position += time.time() - self._lastPlayerUpdate + diff = time.time() - self._lastPlayerUpdate + if diff < 0.5: + position += diff return position def getPlayerPaused(self):