Browse Source

grabber fix

Peter Kosyh 9 months ago
parent
commit
61d388c2f6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      klish/ksession/grabber.c

+ 3 - 1
klish/ksession/grabber.c

@@ -106,8 +106,10 @@ static bool_t grabber_fd_ev(faux_eloop_t *eloop, faux_eloop_type_e type,
 			faux_buf_dwrite_unlock_easy(stream->buf, readed);
 			total += readed;
 		} while (r > 0);
-		if (total > 0)
+		if (total > 0) {
 			faux_eloop_include_fd_event(eloop, stream->fd_out, POLLOUT);
+			info->revents |= POLLOUT; /* force to do first write */
+		}
 	}
 
 	// Write data