1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Stop working on this branch

This commit is contained in:
Steffo 2019-05-15 18:13:34 +02:00
parent daf63b9a61
commit df3d5728d3

View file

@ -108,10 +108,7 @@ class RoyalnetLink:
async def identify(self) -> None:
log.info(f"Identifying to {self.master_uri}...")
await self.websocket.send(f"Identify {self.nid}:{self.link_type}:{self.secret}")
response_package = await self.receive()
response = response_package.data
if isinstance(response, ServerErrorMessage):
raise NetworkError(response, "Server returned error while identifying self")
response_package: dict = await self.receive()
self.identify_event.set()
log.info(f"Identified successfully!")