stefan-kaestle / openhab2-addons

Add-ons for openHAB 2.x
Eclipse Public License 2.0
16 stars 1 forks source link

Correctly check if long poll response is valid #69

Closed coeing closed 3 years ago

coeing commented 3 years ago

GSON will not return null if there is no "result" field, but will just set the "result" member to null. So we have to check both.

This should fix the issue #62 as the long polling is already restarted when the long poll error about an invalid subscription arrives.