Merge pull request #3 from mkienow-r7/pr10862-enhance-session-report-fix-2

Enhance session report fix 2
GSoC/Meterpreter_Web_Console
Green-m 2018-10-26 11:33:13 +08:00 committed by GitHub
commit 4b49f5b48e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -152,8 +152,8 @@ class DataProxy
# Performs a set of data service operations declared within the block.
# This passes the @current_data_service as a parameter to the block.
# If there is no current data service registered, the block is not
# executed and the method simply returns.
# If there is no current data service registered or the data service
# is not active, the block is not executed and the method simply returns.
def data_service_operation(&block)
return unless block_given?
@ -163,7 +163,7 @@ class DataProxy
return
end
block.call(data_service) unless data_service.nil?
block.call(data_service) if !data_service.nil? && self.active
end
def log_error(exception, ui_message)