Add a little more code to avoid not-very-useful blurbs:
[obnox/wireshark/wip.git] / file.c
diff --git a/file.c b/file.c
index 44895a9bc050d3996dc99e6fe8f06104f4d11d32..2c6c3eb5469f7da70ca57a3bfe92257e94f92a83 100644 (file)
--- a/file.c
+++ b/file.c
@@ -801,6 +801,7 @@ cf_continue_tail(capture_file *cf, volatile int to_read, int *err)
 
   /*g_log(NULL, G_LOG_LEVEL_MESSAGE, "cf_continue_tail: %u new: %u", cf->count, to_read);*/
 
+  wtap_cleareof(cf->wth);
   while (to_read != 0 && (wtap_read(cf->wth, err, &err_info, &data_offset))) {
     if (cf->state == FILE_READ_ABORTED) {
       /* Well, the user decided to exit Wireshark.  Break out of the