Fix tunnel info crash when running the sessions command with a websocket based session
This commit is contained in:
parent
b306641755
commit
9a50668c5b
|
@ -62,7 +62,7 @@ module Interactive
|
|||
|
||||
def comm_channel
|
||||
return @comm_info if @comm_info
|
||||
if rstream.respond_to?(:channel)
|
||||
if rstream.respond_to?(:channel) && rstream.channel.respond_to?(:client)
|
||||
@comm_info = "via session #{rstream.channel.client.sid}" if rstream.channel.client.respond_to?(:sid)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue