Dont run twice if daemon too

This commit is contained in:
Denilson M. Amorim 2015-11-15 11:08:48 -03:00
parent e4edeaceb5
commit 2add3f6bc8
No known key found for this signature in database
GPG Key ID: B897456BA2BE90F2

View File

@ -45,6 +45,8 @@ from debug import logger
import helper_bootstrap
import helper_generic
# singleton lock instance
thisapp = None
def connectToStream(streamNumber):
shared.streamsInWhichIAmParticipating[streamNumber] = 'no data'
@ -139,6 +141,8 @@ if shared.useVeryEasyProofOfWorkForTesting:
class Main:
def start(self, daemon=False):
global thisapp
_fixWinsock()
shared.daemon = daemon