Skip to content

Commit

Permalink
fix setting wrong attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
dlech committed May 24, 2024
1 parent 2b6c49f commit d3685a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bleak/backends/winrt/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def assert_mta() -> None:
if apt_type == _AptType.MTA:
# if we get here, WinRT probably set the apartment type to MTA and all
# is well, we don't need to check again
setattr(assert_mta, "_allowed", True)
setattr(allow_sta, "_allowed", True)
return

event = asyncio.Event()
Expand Down Expand Up @@ -157,7 +157,7 @@ def wait_event(*_):
else:
# if the windows event loop is running, we assume it is going to keep
# running and we don't need to check again
setattr(assert_mta, "_allowed", True)
setattr(allow_sta, "_allowed", True)
finally:
_KillTimer(None, timer)

Expand Down

0 comments on commit d3685a2

Please sign in to comment.