Revert "serial-port: don't steal data from PPP when connected"

This reverts commit 625e1c4884.

By simply returning when data is available, no data gets cleared
from the file descriptor and data_available() keeps getting
rescheduled, leading to a busy-loop.  This is the wrong approach,
we should be removing the GIOChannel watch instead.
This commit is contained in:
Dan Williams
2013-02-15 13:42:48 -06:00
parent 253242256c
commit 5280364c4b

View File

@@ -767,10 +767,6 @@ data_available (GIOChannel *source,
if (info && (info->started == TRUE) && (info->done == FALSE))
return TRUE;
/* Don't steal data from PPP if we're connected */
if (mm_port_get_connected (MM_PORT (self)))
return TRUE;
do {
GError *err = NULL;