mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[PR #503] Lock until replacement is initialized #969
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#969
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/503
Author: @rlmaers
Created: 9/25/2020
Status: 🔄 Open
Base:
master← Head:rlmaers📝 Commits (1)
573db3cLock until replacement is initialized📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
application.go(+1 -1)📄 Description
I've experienced seemingly random hangs after returning from a suspend. After a lot of debugging, it seems that the issue is due to a call to Application.draw from the event loop before the replacement screen has been fully initialized. This aims to fix that race condition, and it's also how it's done in Application.Run (i.e. lock until screen has been fully initialized).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.