add restart delay
This commit is contained in:
2
LICENSE
2
LICENSE
@@ -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
|
||||
|
@@ -104,6 +104,7 @@ def rt_sig_handler(sig, frame):
|
||||
|
||||
|
||||
def restart():
|
||||
time.sleep(5)
|
||||
subprocess.Popen(restart_cmd, shell=True)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user