Dont run twice if daemon too

This commit is contained in:
Denilson M. Amorim 2015-11-15 11:08:48 -03:00 committed by Peter Surda
parent cf610080b9
commit 28f46cb8b3

View File

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