Handle when xio scans a null (usually a rough disconnection).

This commit is contained in:
Rob Giseburt
2016-12-14 14:55:50 -06:00
parent 95f9060dad
commit 2a9fcec6d2
+2
View File
@@ -589,6 +589,8 @@ struct LineRXBuffer : RXBuffer<_size, owner_type, char> {
if (c == 0) {
_debug_trap("scan ran into NULL");
flush(); // consider the connection and all data trashed
return false;
}
// Look for line endings