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
|
||||
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
|
||||
|
|
Reference in New Issue
Block a user