add restart delay

This commit is contained in:
piotr
2023-01-02 21:18:50 +01:00
parent 0c495c7d46
commit 231c6b9232
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2021-2022 Piotr Miller & Contributors
Copyright (c) 2021-2023 Piotr Miller & Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@@ -104,6 +104,7 @@ def rt_sig_handler(sig, frame):
def restart():
time.sleep(5)
subprocess.Popen(restart_cmd, shell=True)