diff --git a/nostr_dvm/interfaces/dvmtaskinterface.py b/nostr_dvm/interfaces/dvmtaskinterface.py index 9bc3fe4..bb0820d 100644 --- a/nostr_dvm/interfaces/dvmtaskinterface.py +++ b/nostr_dvm/interfaces/dvmtaskinterface.py @@ -103,10 +103,11 @@ class DVMTaskInterface: print("Installing global Module: " + module) subprocess.check_call([sys.executable, "-m", "pip", "install", package]) - def run(self): + def run(self, join=False): nostr_dvm_thread = Thread(target=self.DVM, args=[self.dvm_config, self.admin_config]) nostr_dvm_thread.start() - nostr_dvm_thread.join() + if join: + nostr_dvm_thread.join() async def schedule(self, dvm_config): """schedule something, e.g. define some time to update or to post, does nothing by default""" diff --git a/setup.py b/setup.py index 719fd26..0a1acc0 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -VERSION = '0.6.32' +VERSION = '0.6.33' DESCRIPTION = 'A framework to build and run Nostr NIP90 Data Vending Machines' LONG_DESCRIPTION = ('A framework to build and run Nostr NIP90 Data Vending Machines. See the github repository for more information')