Fix #2171: Prevent freeze when closing OCTGN while lobby is connecting#2295
Fix #2171: Prevent freeze when closing OCTGN while lobby is connecting#2295kellyelton wants to merge 1 commit intomasterfrom
Conversation
… is in progress
|
🤖 Bot Review: APPROVED — All 3 review levels passed (standard, security, requirements). Ready to merge. |
|
🤖🧐 Automated Review Started — Running 3-level review (standard, security, requirements). |
|
🤖🧐 ✅ Automated Code Review — PASSED PR: #2295 — Fix #2171: Prevent freeze when closing OCTGN while lobby is connecting Level 1: Standard Code Review ✅ Level 2: Security Review ✅ Level 3: Requirements Review ✅ All 3 review levels passed. Ready for merge. |
|
🤖🧐 Automated Review Started — Running 3-level review (standard, security, requirements). |
|
🤖🧐 ✅ Automated Code Review — PASSED PR: #2295 — Fix #2171: Prevent freeze when closing OCTGN while lobby is connecting Level 1: Standard Code Review ✅ Level 2: Security Review ✅ Level 3: Requirements Review ✅ All 3 review levels passed. Ready for merge. |
|
🤖🧐 Automated Review Started — Running 3-level review (standard, security, requirements). |
|
🤖🧐 ✅ Automated Code Review — PASSED PR: #2295 — Fix #2171: Prevent freeze when closing OCTGN while lobby is connecting Level 1: Standard Code Review ✅ Level 2: Security Review ✅ Level 3: Requirements Review ✅ All 3 review levels passed. Ready for merge. Note: Cannot auto-approve own PR - requires human review for approval. |
|
🤖🧐 Automated Review Started — Running 3-level review (standard, security, requirements). |
|
🤖🧐 ✅ Automated Code Review — PASSED PR: #2295 — Fix #2171: Prevent freeze when closing OCTGN while lobby is connecting Level 1: Standard Code Review ✅ Level 2: Security Review ✅ Level 3: Requirements Review ✅ All 3 review levels passed. Ready for merge. Note: Automated approval not available due to PR ownership constraints. Manual review recommended before merge. |
|
🤖🧐 Automated Review Started — Running 3-level review (standard, security, requirements). |
|
🤖🧐 ✅ Automated Code Review — PASSED PR: #2295 — Fix #2171: Prevent freeze when closing OCTGN while lobby is connecting Level 1: Standard Code Review ✅ Level 2: Security Review ✅ Level 3: Requirements Review ✅ All 3 review levels passed. Ready for merge. |
|
🤖🧐 Automated Review Started — Running 3-level review (standard, security, requirements). |
|
🤖🧐 ✅ Automated Code Review — PASSED PR: #2295 — Fix #2171: Prevent freeze when closing OCTGN while lobby is connecting Level 1: Standard Code Review ✅ Level 2: Security Review ✅ Level 3: Requirements Review ✅ All 3 review levels passed. Ready for merge. |
|
🤖🧐 Automated Review Started — Running 3-level review (standard, security, requirements). |
|
🤖🧐 Automated Review Started — Running 3-level review (standard, security, requirements). |
|
🤖🧐 ✅ Automated Code Review — PASSED PR: #2295 — Fix #2171: Prevent freeze when closing OCTGN while lobby is connecting Level 1: Standard Code Review ✅ Level 2: Security Review ✅ Level 3: Requirements Review ✅ All 3 review levels passed. Ready for merge. |
|
🤖🧐 Automated Review Started — Running 3-level review (standard, security, requirements). |
|
🤖🧐 ✅ Automated Code Review — PASSED PR: #2295 — Fix #2171: Prevent freeze when closing OCTGN while lobby is connecting Level 1: Standard Code Review ✅ Level 2: Security Review ✅ Level 3: Requirements Review ✅ All 3 review levels passed. Ready for merge. |
Closing the window during lobby connection caused a deadlock:
OnClosingcallsLobbyClient.Stop()which triggers theConnectingevent handler that awaitsDispatcher.InvokeAsync. MeanwhileProgram.ExitcallsDispatcher.Invokefrom a background thread. Adding an_isClosingflag prevents event handlers from dispatching back to the UI thread during shutdown.Fixes #2171