Fixes re: zognia's testing #2
1 changed files with 5 additions and 5 deletions
|
@ -10,11 +10,11 @@ class OBSWSPlugin(PluginBase):
|
|||
self.uri = uri
|
||||
|
||||
self.obsws = simpleobsws.WebSocketClient(url=uri, password=password)
|
||||
await self.obsws.connect()
|
||||
success = await self.obsws.wait_until_identified()
|
||||
if not success:
|
||||
await self.obsws.disconnect()
|
||||
raise RuntimeError(f'Could not connect to OBS websocket at {self.uri}')
|
||||
await self.obsws.connect()
|
||||
success = await self.obsws.wait_until_identified()
|
||||
if not success:
|
||||
await self.obsws.disconnect()
|
||||
raise RuntimeError(f'Could not connect to OBS websocket at {self.uri}')
|
||||
|
||||
async def run(self, type, _children=None, _ctx={}, **kwargs):
|
||||
req = simpleobsws.Request(type, requestData=kwargs)
|
||||
|
|
Loading…
Add table
Reference in a new issue