From c103e2adf525dbbdf32b8df2b579bd79c81ceb56 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Tue, 12 May 2020 19:28:34 +0100 Subject: [PATCH] Make sure we can still request threads if one threads request fails --- python3/vimspector/stack_trace.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python3/vimspector/stack_trace.py b/python3/vimspector/stack_trace.py index 6746b61..d2c2b70 100644 --- a/python3/vimspector/stack_trace.py +++ b/python3/vimspector/stack_trace.py @@ -118,10 +118,14 @@ class StackTraceView( object ): self._DrawThreads() + def failure_handler( reason, msg ): + # Make sure we request them again if the request fails + self._requesting_threads = False + self._requesting_threads = True self._connection.DoRequest( consume_threads, { 'command': 'threads', - } ) + }, failure_handler ) def _DrawThreads( self ): self._line_to_frame.clear()