bugfix: call cf_cb_live_capture_finished *if* some packets were captured
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 10 Apr 2005 17:18:45 +0000 (17:18 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 10 Apr 2005 17:18:45 +0000 (17:18 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14042 f5534014-38df-0310-8fa8-9805f1628bb7

capture.c

index ca0a413280dafc097bae7a485c7327b6da2cb675..12ab9cfa41b952f0dd49bec062c42c5be2e95d3e 100644 (file)
--- 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: