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. 7
      SABnzbd.py

7
SABnzbd.py

@ -691,10 +691,7 @@ def is_sabnzbd_running(url):
try: try:
url = '%s&mode=version' % (url) url = '%s&mode=version' % (url)
ver = sabnzbd.newsunpack.get_from_url(url) ver = sabnzbd.newsunpack.get_from_url(url)
if ver and ver.strip(' \n\r\t') == sabnzbd.__version__: return True
return True
else:
return False
except: except:
return False return False
@ -714,7 +711,7 @@ def find_free_port(host, currentport):
def check_for_sabnzbd(url, upload_nzbs, allow_browser=True): 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. allow_browser==True|None will launch the browser, False will not.
""" """
if allow_browser is None: if allow_browser is None:

Loading…
Cancel
Save