From 69d739246716fd744aab79ce6d65919bc6393df9 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Thu, 27 May 2010 23:55:04 +0000 Subject: Add cf_fake_continue_tail() which is called when real-time capture updates are off and which sets the capture file state to a value that won't cause an assertion when the user stops capturing. Fixes bug 4035. svn path=/trunk/; revision=33005 --- file.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'file.c') diff --git a/file.c b/file.c index f7395b4c2e..779fcf8ed3 100644 --- a/file.c +++ b/file.c @@ -904,6 +904,11 @@ cf_continue_tail(capture_file *cf, volatile int to_read, int *err) return CF_READ_OK; } +void +cf_fake_continue_tail(capture_file *cf) { + cf->state = FILE_READ_DONE; +} + cf_read_status_t cf_finish_tail(capture_file *cf, int *err) { -- cgit v1.2.1