Commit 9093c21
Fix infinite loop in AeshConsole.deadlockSafeWrite() during dev mode shutdown
When connectionLock.tryLock() fails, the for(;;) loop spins indefinitely.
This occurs during shutdown when the Console Shutdown Hook holds the lock
while another thread (e.g. application shutdown firing ShutdownEvent) tries
to log through AeshConsole. Return immediately when tryLock() fails since
the lock-holding thread already drains the entire queue.
(cherry picked from commit 1b04918)1 parent dad764b commit 9093c21
1 file changed
Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
| |||
0 commit comments