Skip to content

Commit

Permalink
Merge pull request #717 from Morg42/develop
Browse files Browse the repository at this point in the history
sdp: fix jsonrpc protocol list handling
  • Loading branch information
Morg42 authored Feb 9, 2025
2 parents 7502827 + ca988c0 commit fdf175b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/model/sdp/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,12 @@ def check_chunk(data):

# process all response items
for ldata in datalist:
self.logger.debug(f'Processing received data item #{datalist.index(ldata)}: {data}')
self.logger.debug(f'Processing received data item #{datalist.index(ldata)}: {ldata}')

try:
jdata = json.loads(str(ldata, 'utf-8').strip())
except Exception as err:
if data == datalist[-1]:
if ldata == datalist[-1]:
self.logger.debug(f'returning incomplete data to buffer: {ldata}')
self._receive_buffer = ldata
else:
Expand Down

0 comments on commit fdf175b

Please sign in to comment.