File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -3,18 +3,15 @@ module Msf::Module::External
3
3
4
4
def wait_status ( mod )
5
5
begin
6
- while mod . running
7
- m = mod . get_status
8
- if m
9
- case m . method
10
- when :message
11
- log_output ( m )
12
- when :report
13
- process_report ( m )
14
- when :reply
15
- # we're done
16
- break
17
- end
6
+ while m = mod . get_status
7
+ case m . method
8
+ when :message
9
+ log_output ( m )
10
+ when :report
11
+ process_report ( m )
12
+ when :reply
13
+ # we're done
14
+ break
18
15
end
19
16
end
20
17
rescue Interrupt => e
Original file line number Diff line number Diff line change @@ -26,10 +26,11 @@ def run(datastore)
26
26
end
27
27
28
28
def get_status
29
- if self . running
29
+ if self . running || ! self . messages . empty?
30
30
m = receive_notification
31
31
if m . nil?
32
32
close_ios
33
+ self . messages . close
33
34
self . running = false
34
35
end
35
36
You can’t perform that action at this time.
0 commit comments