Reset the connection when the channel closes
This commit is contained in:
parent
dbef05b9a5
commit
73f8a66d2c
2 changed files with 4 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ endfunction
|
||||||
|
|
||||||
function! s:_OnClose( channel ) abort
|
function! s:_OnClose( channel ) abort
|
||||||
echom "Channel closed"
|
echom "Channel closed"
|
||||||
|
_vimspector_session.OnChannelClosed()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:_Send( msg ) abort
|
function! s:_Send( msg ) abort
|
||||||
|
|
|
||||||
|
|
@ -128,6 +128,9 @@ class DebugSession( object ):
|
||||||
def OnChannelData( self, data ):
|
def OnChannelData( self, data ):
|
||||||
self._connection.OnData( data )
|
self._connection.OnData( data )
|
||||||
|
|
||||||
|
def OnChannelClosed( self ):
|
||||||
|
self._connection = None
|
||||||
|
|
||||||
def Stop( self ):
|
def Stop( self ):
|
||||||
self._StopDebugAdapter()
|
self._StopDebugAdapter()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue