Dont allow checkSites run in parallel
This commit is contained in:
parent
f27e58395b
commit
50708c16de
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@ import time
|
|||
|
||||
import gevent
|
||||
|
||||
import util
|
||||
from Config import config
|
||||
from FileRequest import FileRequest
|
||||
from Site import SiteManager
|
||||
|
@ -165,7 +166,7 @@ class FileServer(ConnectionServer):
|
|||
site.needConnections()
|
||||
|
||||
# Check sites integrity
|
||||
def checkSites(self):
|
||||
@util.Noparallel()
|
||||
def checkSites(self, check_files=True):
|
||||
sites_checking = False
|
||||
if self.port_opened is None: # Test and open port if not tested yet
|
||||
|
|
Loading…
Reference in a new issue