mirror of
https://github.com/synthetos/g2.git
synced 2026-09-21 18:56:31 +08:00
Handle when xio scans a null (usually a rough disconnection).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user