MCPcopy Create free account
hub / github.com/Syncplay/syncplay / removeWatcher

Method removeWatcher

syncplay/server.py:641–648  ·  view source on GitHub ↗
(self, watcher)

Source from the content-addressed store, hash-verified

639 watcher.setRoom(self)
640
641 def removeWatcher(self, watcher):
642 if watcher.getName() not in self._watchers:
643 return
644 del self._watchers[watcher.getName()]
645 watcher.setRoom(None)
646 if not self._watchers and not self.isPersistent():
647 self._position = 0
648 self.writeToDb()
649
650 def isEmpty(self):
651 return not bool(self._watchers)

Callers 5

connectionLostMethod · 0.45
removeWatcherMethod · 0.45
removeWatcherMethod · 0.45
removeWatcherMethod · 0.45
sendStateMethod · 0.45

Calls 4

isPersistentMethod · 0.95
writeToDbMethod · 0.95
getNameMethod · 0.45
setRoomMethod · 0.45

Tested by

no test coverage detected