Fixed cleanup race condition on browser page close

This commit is contained in:
Mark Qvist 2025-12-28 23:41:08 +01:00
parent 35910343fe
commit c4bf97dae2

View file

@ -37,6 +37,7 @@ class BrowserFrame(urwid.Frame):
if hasattr(self.delegate, "page_pile") and self.delegate.page_pile:
def df(loop, user_data):
st = None
if self.delegate.page_pile:
nf = self.delegate.page_pile.focus
if hasattr(nf, "key_timeout"):
st = nf