SICS-593 (in progress) Protocol handlers should return 0 from the

AsconReading state.
This commit is contained in:
Ferdi Franceschini
2013-04-24 16:44:53 +10:00
parent bdf1c24c57
commit e28b1f77da

View File

@@ -15,7 +15,7 @@ int VelSelReading(Ascon *a)
a->state = AsconTimeout;
}
}
return 1;
return 0;
}
DynStringConcatChar(a->rdBuffer, chr);
while ((ret = AsconReadChar(a->fd, &chr)) > 0) {
@@ -23,6 +23,7 @@ int VelSelReading(Ascon *a)
}
a->state = AsconReadDone;
DynStringConcatChar(a->rdBuffer, '\0');
return 0;
}
int VelSelProtHandler(Ascon *a)