File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -45,19 +45,22 @@ class << self
45
45
# Class request handler for all channels that dispatches requests
46
46
# to the appropriate class instance's DIO handler
47
47
def request_handler ( client , packet )
48
+ handled = false
48
49
if packet . method == 'core_pivot_session_new'
50
+ handled = true
49
51
session_guid = packet . get_tlv_value ( TLV_TYPE_SESSION_GUID )
50
52
listener_id = packet . get_tlv_value ( TLV_TYPE_PIVOT_ID )
51
53
client . add_pivot_session ( Pivot . new ( client , session_guid , listener_id ) )
52
54
elsif packet . method == 'core_pivot_session_died'
55
+ handled = true
53
56
session_guid = packet . get_tlv_value ( TLV_TYPE_SESSION_GUID )
54
57
pivot = client . find_pivot_session ( session_guid )
55
58
if pivot
56
59
pivot . pivoted_session . kill ( 'Died' )
57
60
client . remove_pivot_session ( session_guid )
58
61
end
59
62
end
60
- true
63
+ handled
61
64
end
62
65
end
63
66
You can’t perform that action at this time.
0 commit comments