mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Catch server discovery error
This commit is contained in:
parent
e4ba707a59
commit
124b3bdde1
1 changed files with 8 additions and 2 deletions
|
@ -263,9 +263,15 @@ class ConnectionManager(object):
|
||||||
|
|
||||||
log.debug("MultiGroup : %s" % str(MULTI_GROUP))
|
log.debug("MultiGroup : %s" % str(MULTI_GROUP))
|
||||||
log.debug("Sending UDP Data: %s" % MESSAGE)
|
log.debug("Sending UDP Data: %s" % MESSAGE)
|
||||||
sock.sendto(MESSAGE, MULTI_GROUP)
|
|
||||||
|
|
||||||
servers = []
|
servers = []
|
||||||
|
|
||||||
|
try:
|
||||||
|
sock.sendto(MESSAGE, MULTI_GROUP)
|
||||||
|
except Exception as error:
|
||||||
|
log.error(error)
|
||||||
|
return servers
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
data, addr = sock.recvfrom(1024) # buffer size
|
data, addr = sock.recvfrom(1024) # buffer size
|
||||||
|
|
Loading…
Reference in a new issue