Browse Source

Remove version check when looking for a running instance of SABnzbd.

This will lower the chance of inadvertently launching multiple instances.
User will need to use --new to force a new instance.
tags/0.7.6Beta1
ShyPike 13 years ago
parent
commit
6b79fad626
  1. 5
      SABnzbd.py

5
SABnzbd.py

@ -691,10 +691,7 @@ def is_sabnzbd_running(url):
try:
url = '%s&mode=version' % (url)
ver = sabnzbd.newsunpack.get_from_url(url)
if ver and ver.strip(' \n\r\t') == sabnzbd.__version__:
return True
else:
return False
except:
return False
@ -714,7 +711,7 @@ def find_free_port(host, currentport):
def check_for_sabnzbd(url, upload_nzbs, allow_browser=True):
""" Check for a running instance of sabnzbd(same version) on this port
""" Check for a running instance of sabnzbd on this port
allow_browser==True|None will launch the browser, False will not.
"""
if allow_browser is None:

Loading…
Cancel
Save