mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-82266 Debugging is stopped only after second pressing Stop button
Merge-request: IJ-MR-167496 Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com> GitOrigin-RevId: 010536e426b82b7c56ae117c4410a58fa3cdfe76
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ed5b3f1d1e
commit
ae4a2db1e7
@@ -522,8 +522,9 @@ class NetCommand:
|
||||
sock.sendall(('Content-Length: %s\r\n\r\n' % len(as_bytes)).encode('ascii'))
|
||||
try:
|
||||
sock.sendall(as_bytes)
|
||||
except BrokenPipeError:
|
||||
print("Connection closed unexpectedly!")
|
||||
except OSError as e:
|
||||
if not IS_PY2 and isinstance(e, ConnectionError):
|
||||
print("Connection error: %s" % (e,))
|
||||
|
||||
@classmethod
|
||||
def _show_debug_info(cls, cmd_id, seq, text):
|
||||
|
||||
@@ -13,7 +13,6 @@ if USE_LOW_IMPACT_MONITORING:
|
||||
|
||||
|
||||
class PyDBDaemonThread(threading.Thread):
|
||||
|
||||
def __init__(self, py_db=None, target_and_args=None):
|
||||
"""
|
||||
:param target_and_args:
|
||||
|
||||
@@ -1447,18 +1447,6 @@ class PyDB(object):
|
||||
return
|
||||
|
||||
pydev_log.debug("PyDB.dispose_and_kill_all_pydevd_threads (first call)")
|
||||
|
||||
# Wait until a time when there are no commands being processed to kill the threads.
|
||||
started_at = time.time()
|
||||
while time.time() < started_at + timeout:
|
||||
with self._main_lock:
|
||||
writer = self.writer
|
||||
if writer is None or writer.empty():
|
||||
pydev_log.debug("PyDB.dispose_and_kill_all_pydevd_threads no commands being processed.")
|
||||
break
|
||||
else:
|
||||
pydev_log.debug("PyDB.dispose_and_kill_all_pydevd_threads timed out waiting for writer to be empty.")
|
||||
|
||||
pydb_daemon_threads = set(self.created_pydb_daemon_threads)
|
||||
for t in pydb_daemon_threads:
|
||||
if hasattr(t, "do_kill_pydev_thread"):
|
||||
|
||||
Reference in New Issue
Block a user