Skip to content

Comments

Remove spurious while loop#1

Open
Yossi wants to merge 1 commit intorecantha:mainfrom
Yossi:patch-1
Open

Remove spurious while loop#1
Yossi wants to merge 1 commit intorecantha:mainfrom
Yossi:patch-1

Conversation

@Yossi
Copy link

@Yossi Yossi commented Dec 14, 2022

ap.active is a method (obviously, since its used on the previous line) so it always evaluates to not False. It is NOT a flag indicating an active connection or not. This becomes clear when you try to print(ap.active)

ap.active is a method (obviously, since its used on the previous line) so it always evaluates to not False.
It is NOT a flag indicating an active connection or not. This becomes clear when you try to print(ap.active)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant