Fix Riapertura finestra server in caso di errore

This commit is contained in:
Alhaziel01
2022-02-17 17:34:11 +01:00
parent ff5a009167
commit bbd10b5f76
+6 -3
View File
@@ -2009,9 +2009,10 @@ def serverWindow(item, itemlist):
if index > 0: xbmc.executebuiltin(context_commands[index]) if index > 0: xbmc.executebuiltin(context_commands[index])
if itemlist: if itemlist:
def monitor(itemlist): def monitor(itemlist):
reopen = False reopen = True
while not xbmc.Monitor().abortRequested(): while not xbmc.Monitor().abortRequested():
if not is_playing(): if not is_playing():
if reopen: if reopen:
@@ -2028,8 +2029,10 @@ def serverWindow(item, itemlist):
else: else:
from platformcode.launcher import run from platformcode.launcher import run
run(selection) try:
reopen = True run(selection)
except:
reopen = False
if not selection.server or selection.server == 'torrent': break if not selection.server or selection.server == 'torrent': break
db.close() db.close()