Dont run twice if daemon too
This commit is contained in:
parent
cf610080b9
commit
28f46cb8b3
|
@ -44,8 +44,9 @@ from debug import logger
|
||||||
# Helper Functions
|
# Helper Functions
|
||||||
import helper_bootstrap
|
import helper_bootstrap
|
||||||
import helper_generic
|
import helper_generic
|
||||||
import upnp
|
|
||||||
|
# singleton lock instance
|
||||||
|
thisapp = None
|
||||||
|
|
||||||
def connectToStream(streamNumber):
|
def connectToStream(streamNumber):
|
||||||
shared.streamsInWhichIAmParticipating[streamNumber] = 'no data'
|
shared.streamsInWhichIAmParticipating[streamNumber] = 'no data'
|
||||||
|
@ -140,6 +141,8 @@ if shared.useVeryEasyProofOfWorkForTesting:
|
||||||
|
|
||||||
class Main:
|
class Main:
|
||||||
def start(self, daemon=False):
|
def start(self, daemon=False):
|
||||||
|
global thisapp
|
||||||
|
|
||||||
_fixWinsock()
|
_fixWinsock()
|
||||||
|
|
||||||
shared.daemon = daemon
|
shared.daemon = daemon
|
||||||
|
|
Reference in New Issue
Block a user