xbmc / Official-Kodi-Remote-iOS

Full-featured remote control for XBMC Media Center. It features library browsing, now playing informations and a direct remote control.
Other
215 stars 104 forks source link

Improvement: Do not queue up JSON commands while disconnected to Kodi #1070

Open wutschel opened 3 weeks ago

wutschel commented 3 weeks ago

Description

Resolves an issue reported in this forum post.

JSON commands are usually not using the withTimeout parameter. This lets the timeout internally be set to 1 hour as for sync of large databases the response times can be excessively long. Only the heartbeat JSON calls which are used to determine, if Kodi server is still connected, use withTimeout (typically the timeout is 3 sec).

This fact can be used to avoid sending JSON requests while the server is not connected. This avoids undesired queueing of JSON requests while the server is temporarily not connected.

Summary for release notes

Improvement: Do not queue up JSON commands while disconnected to Kodi