Skip to content

Commit

Permalink
Dont allow checkSites run in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Mar 18, 2016
1 parent f27e583 commit 50708c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/File/FileServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import gevent

import util
from Config import config
from FileRequest import FileRequest
from Site import SiteManager
Expand Down Expand Up @@ -165,7 +166,7 @@ def checkSite(self, site, check_files=True):
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
Expand Down

0 comments on commit 50708c1

Please sign in to comment.