[issue25593] _sock_connect_cb can be called twice resulting in InvalidStateError

Guido van Rossum report at bugs.python.org
Thu Nov 19 12:29:31 EST 2015


Guido van Rossum added the comment:

Here's a better patch.

- Renamed _stopped to _stopping.
- Restore test_utils.run_once() and add a test for it.
- Change logic so if _stopping is True upon entering run_forever(), it will run once.

Please try it out!!

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25593>
_______________________________________


More information about the Python-bugs-list mailing list