SICS-593: Return 0 from the AsconReading state to ensure that SICS
progresses through tasks.
This commit is contained in:
@@ -161,10 +161,10 @@ int LFGenReading(Ascon *a)
|
||||
}
|
||||
|
||||
if (a->timeout > 0) {
|
||||
if (DoubleTime() - a->start > 0.05) { //a->timeout) {
|
||||
if (DoubleTime() - a->start > 0.05) {
|
||||
AsconError(a, "read timeout", 0);
|
||||
a->state = AsconTimeout;
|
||||
return 1;
|
||||
/* a->state = AsconTimeout; */
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
ret = AsconReadChar(a->fd, &chr);
|
||||
@@ -210,7 +210,7 @@ int LFGenReading(Ascon *a)
|
||||
|
||||
free(lfchar);
|
||||
//DynStringConcatChar(a->rdBuffer, '\0');
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int LFGenProtHandler(Ascon *a)
|
||||
|
||||
Reference in New Issue
Block a user