aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-02-10 01:55:36 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-02-10 01:55:36 +0000
commited27475728548ec8613beae8fbd62cce8daf7421 (patch)
tree9d11d1be34fb47fb0912c03a807d4a190539237f /file.c
parent45fa855e815f034478c5c4b9f113303d4574c6ef (diff)
bugfix for sync_mode captures, wasn't started correctly (cf_callback_invoke(cf_cb_live_capture_started); was never called)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13369 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'file.c')
-rw-r--r--file.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/file.c b/file.c
index 3d345ffe01..85cfbb91fa 100644
--- a/file.c
+++ b/file.c
@@ -502,7 +502,13 @@ cf_read(capture_file *cf)
cf_status_t
cf_start_tail(capture_file *cf, const char *fname, gboolean is_tempfile, int *err)
{
- return cf_open(cf, fname, is_tempfile, err);
+ cf_status_t cf_status;
+
+ cf_status = cf_open(cf, fname, is_tempfile, err);
+ if (cf_status == CF_OK) {
+ cf_callback_invoke(cf_cb_live_capture_started, cf);
+ }
+ return cf_status;
}
cf_read_status_t