Attempt a reconnect for astvels protocol if a command times out.

This lets us re-use the astvel protovol to support SICS-601 so that HTTP
connections will reconnect after the connection times out.
This commit is contained in:
Ferdi Franceschini
2013-05-05 18:59:46 +10:00
parent 7e1e4e2d45
commit c09968b72e

View File

@@ -12,7 +12,6 @@ int VelSelReading(Ascon *a)
if (a->timeout > 0) { if (a->timeout > 0) {
if (DoubleTime() - a->start > a->timeout) { if (DoubleTime() - a->start > a->timeout) {
AsconError(a, "read timeout", 0); AsconError(a, "read timeout", 0);
a->state = AsconTimeout;
} }
} }
return 0; return 0;