correct shutown

This commit is contained in:
Believethehype
2023-11-29 11:00:15 +01:00
parent 9f495f50fd
commit 63fe5cb6a1
2 changed files with 2 additions and 3 deletions

4
bot.py
View File

@@ -395,8 +395,8 @@ class Bot:
time.sleep(1.0)
except KeyboardInterrupt:
print('Stay weird!')
os.kill(os.getpid(), signal.SIGKILL)
exit(1)
os.kill(os.getpid(), signal.SIGTERM)
def run(self):
bot = Bot

View File

@@ -80,7 +80,6 @@ def run_nostr_dvm_with_local_config():
while True:
time.sleep(10)
except KeyboardInterrupt:
print('Stay weird!')
os.kill(os.getpid(), signal.SIGKILL)
exit(1)