From 2772762dcc923df5d8460229fb9ea05ee0f591c2 Mon Sep 17 00:00:00 2001 From: Uriziel Date: Wed, 12 Dec 2012 00:38:01 +0100 Subject: [PATCH] Room change no longer rewinds the video --- syncplay/server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syncplay/server.py b/syncplay/server.py index 9a49a6c..73cff8e 100644 --- a/syncplay/server.py +++ b/syncplay/server.py @@ -166,6 +166,9 @@ class SyncFactory(Factory): oldRoom = watcher.room self._createRoomIfDoesntExist(room) self._rooms[room][watcherProtocol] = watcher + self._roomStates[room]["position"] = watcher.position + self._roomStates[room]["setBy"] = watcher.name + self._roomStates[room]["lastUpdate"] = time.time() self._deleteRoomIfEmpty(oldRoom) if(self.isolateRooms): #this is trick to inform old room about leaving l = lambda w: w.sendUserSetting(watcher.name, room, watcher.file, None)