Try and work out why the server exit handler isn't called

This commit is contained in:
Ben Jackson 2019-07-24 17:38:08 +01:00
commit 3edd1589c3
2 changed files with 9 additions and 2 deletions

View file

@ -744,6 +744,8 @@ class DebugSession( object ):
self._variablesView.Clear()
def OnServerExit( self, status ):
self._logger.info( "The server has terminated with status %s",
status )
self.Clear()
self._connection.Reset()
@ -759,7 +761,7 @@ class DebugSession( object ):
def OnEvent_terminated( self, message ):
# We will handle this when the server actually exists
utils.UserMessage( "Debugging was terminated." )
utils.UserMessage( "Debugging was terminated by the server." )
def OnEvent_output( self, message ):
if self._outputView: