We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ebf7379 + 686a463 commit 0068857Copy full SHA for 0068857
lib/msf/core/rpc/v10/service.rb
@@ -140,11 +140,16 @@ def process(req)
140
end
141
142
143
- ::Timeout.timeout(self.dispatcher_timeout) { self.handlers[group].send(mname, *msg) }
+ ::Timeout.timeout(self.dispatcher_timeout) do
144
+ Thread.current[:rpc_token] = token
145
+ self.handlers[group].send(mname, *msg)
146
+ end
147
148
rescue ::Exception => e
149
elog('RPC Exception', error: e)
150
process_exception(e)
151
+ ensure
152
+ Thread.current[:rpc_token] = nil
153
154
155
0 commit comments