Changed start code for deamon mode
This commit is contained in:
parent
db31cb4147
commit
c5442029b5
|
@ -770,7 +770,7 @@ if shared.useVeryEasyProofOfWorkForTesting:
|
|||
shared.networkDefaultPayloadLengthExtraBytes = int(
|
||||
shared.networkDefaultPayloadLengthExtraBytes / 7000)
|
||||
|
||||
if __name__ == "__main__":
|
||||
def main():
|
||||
# is the application already running? If yes then exit.
|
||||
thisapp = singleton.singleinstance()
|
||||
|
||||
|
@ -840,6 +840,8 @@ if __name__ == "__main__":
|
|||
|
||||
while True:
|
||||
time.sleep(20)
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
# So far, the creation of and management of the Bitmessage protocol and this
|
||||
# client is a one-man operation. Bitcoin tips are quite appreciated.
|
||||
|
|
Loading…
Reference in New Issue
Block a user