mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: Backup didn't work anymore after a running backup was canceled
This commit is contained in:
parent
8c77b84aac
commit
1febf11362
3 changed files with 13 additions and 0 deletions
|
@ -44,6 +44,8 @@ module BackupRestore
|
|||
end
|
||||
|
||||
def listen_for_shutdown_signal
|
||||
BackupRestore.clear_shutdown_signal!
|
||||
|
||||
Thread.new do
|
||||
while BackupRestore.is_operation_running?
|
||||
exit if BackupRestore.should_shutdown?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue