Skip to content

Commit

Permalink
updated PAHO library to v1.0.2 to fix startup issues caused by
Browse files Browse the repository at this point in the history
"localhost" not resolving, which apparently seems to happen on some
OpenELEC installations. Fixes #6 (thanks fab33)
  • Loading branch information
owagner committed Sep 15, 2015
1 parent 5f02544 commit 889df3f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service.mqtt/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="service.mqtt" name="MQTT Adapter" version="0.7" provider-name="owagner">
<addon id="service.mqtt" name="MQTT Adapter" version="0.8" provider-name="owagner">
<requires>
<import addon="xbmc.python" version="2.19.0"/>
</requires>
Expand Down
5 changes: 5 additions & 0 deletions service.mqtt/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v0.8 - 2015-09-15 - owagner
- updated PAHO library to v1.0.2 to fix startup issues caused by
"localhost" not resolving, which apparently seems to happen on some
OpenELEC installations. Fixes #6 (thanks fab33)

v0.7 - 2015-08-01 - existsec
- include "thumbnail" and "fanart" in title message

Expand Down
2 changes: 1 addition & 1 deletion service.mqtt/lib/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def _socketpair_compat():
sock1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_IP)
sock1.setblocking(0)
try:
sock1.connect(("localhost", port))
sock1.connect(("127.0.0.1", port))
except socket.error as err:
if err.errno != errno.EINPROGRESS and err.errno != errno.EWOULDBLOCK and err.errno != EAGAIN:
raise
Expand Down

0 comments on commit 889df3f

Please sign in to comment.