From 63047dfdd5d2a2261e46094401efe1c429419d00 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Sun, 10 Apr 2005 17:18:45 +0000 Subject: bugfix: call cf_cb_live_capture_finished *if* some packets were captured svn path=/trunk/; revision=14042 --- capture.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'capture.c') 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: -- cgit v1.2.3