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

Ctrl + C interrupt event makes slideshow exit #197

Open
noraworld opened this issue Dec 15, 2020 · 0 comments
Open

Ctrl + C interrupt event makes slideshow exit #197

noraworld opened this issue Dec 15, 2020 · 0 comments

Comments

@noraworld
Copy link

Sometimes Ctrl + C interrupt event makes slideshow exit after slideshow starts.

$ pokemon -ss
Starting slideshow with 768 Pokemons and a delay of 10.0 minutes.
Forked process to background with PID 10785.
You can stop it with 'pokemon -c'.

# Type Ctrl + C on prompt due to the misstype command
$ misstype ^C
Process Process-1:

Traceback (most recent call last):
  File "/Users/noraworld/.anyenv/envs/pyenv/versions/3.8.5/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/Users/noraworld/.anyenv/envs/pyenv/versions/3.8.5/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/noraworld/.anyenv/envs/pyenv/versions/3.8.5/lib/python3.8/site-packages/pokemonterminal/slideshow.py", line 29, in __slideshow_worker
    t.join(delay * 60)
  File "/Users/noraworld/.anyenv/envs/pyenv/versions/3.8.5/lib/python3.8/threading.py", line 1015, in join
    self._wait_for_tstate_lock(timeout=max(timeout, 0))
  File "/Users/noraworld/.anyenv/envs/pyenv/versions/3.8.5/lib/python3.8/threading.py", line 1027, in _wait_for_tstate_lock
    elif lock.acquire(block, timeout):
KeyboardInterrupt

This happens sometimes, not always. I have no idea when this happens.

CullenLYe added a commit to CullenLYe/Pokemon-Terminal that referenced this issue Apr 3, 2024
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

No branches or pull requests

1 participant