mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-17 06:14:40 +00:00
Fix ineffective restartInitiated guard with proper debouncing
The guard was setting and immediately resetting the flag in the same synchronous execution, providing no actual protection. Now the flag stays true until proxy reaches a stable state (running/exited/error) via WebSocket notification, with additional client-side guard. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
d53a12182e
commit
2fc870c6eb
2 files changed
+7
-5
No files matched your search
@@ -181,6 +181,7 @@
|
||||
}
|
||||
});
|
||||
$wire.$on('restartEvent', () => {
|
||||
if ($wire.restartInitiated) return;
|
||||
window.dispatchEvent(new CustomEvent('startproxy'))
|
||||
$wire.$call('restart');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user