Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting both python 2 and python 3 + fixed "threads can only be started once" issue #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kmerenkov
Copy link
Contributor

  • _started is used by Thread class in python 3, so I renamed it to _running
    (in python 2 Thread used __started, not _started)
  • In constructor, right after calling Thread.start method, setting _running
    to True, so the next call to Thread.show wouldn't raise "threads can only be started once"
    error

…arted once" issue

- _started is used by Thread class in python 3, so I renamed it to _running
(in python 2 Thread used __started, not _started)
- In constructor, right after calling Thread.start method, setting _running
to True, so the next call to Thread.show wouldn't raise "threads can only be started once"
error
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