summaryrefslogtreecommitdiff
path: root/capture.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-04-10 17:18:45 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-04-10 17:18:45 +0000
commit63047dfdd5d2a2261e46094401efe1c429419d00 (patch)
treec8bcf8af2645203dc1aab51c89db87c358018440 /capture.c
parent70f1945084cd397ace2e3fe2880aeb3c559843b5 (diff)
downloadwireshark-63047dfdd5d2a2261e46094401efe1c429419d00.tar.gz
bugfix: call cf_cb_live_capture_finished *if* some packets were captured
svn path=/trunk/; revision=14042
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/capture.c b/capture.c
index ca0a413280..12ab9cfa41 100644
--- a/capture.c
+++ b/capture.c
@@ -282,6 +282,8 @@ capture_input_closed(capture_options *capture_opts)
cf_is_tempfile(capture_opts->cf) ? "temporary " : "");
cf_close(capture_opts->cf);
/* we have closed the capture file, don't call cf_cb_live_capture_finished! */
+ } else {
+ cf_callback_invoke(cf_cb_live_capture_finished, capture_opts->cf);
}
break;
case CF_READ_ERROR: