From 5628b0a01fa83dbdb32b67083239af399b7f8170 Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Wed, 4 Mar 2015 18:05:05 +0100 Subject: [PATCH] Fix warning about thread. --- python/helpers/pydev/pydevd.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/python/helpers/pydev/pydevd.py b/python/helpers/pydev/pydevd.py index d0919c18d9b6..03bc80596148 100644 --- a/python/helpers/pydev/pydevd.py +++ b/python/helpers/pydev/pydevd.py @@ -522,12 +522,11 @@ class PyDB: for t in all_threads: thread_id = GetThreadId(t) - if isinstance(t, PyDBDaemonThread): - pydev_log.error_once('Found PyDBDaemonThread in threading.enumerate.') - - elif getattr(t, 'is_pydev_daemon_thread', False): + if getattr(t, 'is_pydev_daemon_thread', False): pass # I.e.: skip the DummyThreads created from pydev daemon threads - + elif isinstance(t, PyDBDaemonThread): + pydev_log.error_once('Error in debugger: Found PyDBDaemonThread not marked with is_pydev_daemon_thread=True.\n') + elif isThreadAlive(t): program_threads_alive[thread_id] = t