Fix warning about thread.

This commit is contained in:
Dmitry Trofimov
2015-03-04 18:05:05 +01:00
parent 450a231a4e
commit 5628b0a01f
+4 -5
View File
@@ -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