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

Method removeWatcher

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

Source from the content-addressed store, hash-verified

153 self._roomManager.broadcast(watcher, l)
154
155 def removeWatcher(self, watcher):
156 if watcher and watcher.getRoom():
157 self.sendLeftMessage(watcher)
158 self._roomManager.removeWatcher(watcher)
159 if self.roomsDbFile:
160 l = lambda w: w.sendList(toGUIOnly=True)
161 self._roomManager.broadcast(watcher, l)
162
163 def sendLeftMessage(self, watcher):
164 l = lambda w: w.sendSetting(watcher.getName(), watcher.getRoom(), None, {"left": True})

Callers

nothing calls this directly

Calls 5

sendLeftMessageMethod · 0.95
getRoomMethod · 0.45
removeWatcherMethod · 0.45
sendListMethod · 0.45
broadcastMethod · 0.45

Tested by

no test coverage detected