Do not reset the "failed" bit after the error function sets it

r3547 | dcl | 2012-05-18 13:53:45 +1000 (Fri, 18 May 2012) | 1 line
This commit is contained in:
Douglas Clowes
2012-05-18 13:53:45 +10:00
parent b28a43dd87
commit 585b67ca5a

View File

@@ -359,8 +359,8 @@ int AsconStdHandler(Ascon *a) {
} else {
if (a->timeout > 0) {
if (DoubleTime() - a->start > a->timeout) {
AsconError(a, "read timeout", 0);
a->state = AsconTimeout;
AsconError(a, "read timeout", 0);
}
}
}