fix: Check for empty messages before checking its properties in MuxRPCAPI
This commit is contained in:
parent
6ddb8bc8d3
commit
01e8de96b2
@ -159,11 +159,11 @@ class MuxRPCAPI:
|
||||
"""Continuously process incoming messages"""
|
||||
|
||||
async for req_message in self.connection:
|
||||
body = req_message.body
|
||||
|
||||
if req_message is None:
|
||||
return
|
||||
|
||||
body = req_message.body
|
||||
|
||||
if isinstance(body, dict) and body.get("name"):
|
||||
self.process(self.connection, MuxRPCRequest.from_message(req_message))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user