- else if (port_data.status == DEVICE_UP) { /* error or close on read */
- port_data.errors++;
- if (port_data.scan == 0) {
- // Should not get this unless the device is down. NOT TRUE!
- // We seem to also be able to get here if we're closing/restarting
- // another interface. For that reason I commented out the below
- // statement so that this interface won't go down. The inactivity
- // timer solves that issue now anyway. --we7u.
- port_data.status = DEVICE_ERROR;
-
- // If the below statement is enabled, it causes an immediate reconnect
- // after one time-period of inactivity, currently 7.5 minutes, as set in
- // main.c:UpdateTime(). This means the symbol will never change from green
- // to red on the status bar, so the operator might not know about a
- // connection that is being constantly reconnected. By leaving it commented
- // out we get one time period of red, and then it will reconnect at the 2nd
- // time period. This means we can reconnect within 15 minutes if a line
- // goes dead.
- //
- port_data.reconnects = -1; // Causes an immediate reconnect
-
- // Show the latest status in the interface control dialog
-// update_interface_list();
-
- } else {
- if (port_data.scan == -1) {
- /* Should only get this if an real error occurs */
- port_data.status = DEVICE_ERROR;
-
- // If the below statement is enabled, it causes an immediate reconnect
- // after one time-period of inactivity, currently 7.5 minutes, as set in
- // main.c:UpdateTime(). This means the symbol will never change from green
- // to red on the status bar, so the operator might not know about a
- // connection that is being constantly reconnected. By leaving it commented
- // out we get one time period of red, and then it will reconnect at the 2nd
- // time period. This means we can reconnect within 15 minutes if a line
- // goes dead.
- //
- port_data.reconnects = -1; // Causes an immediate reconnect
-
- // Show the latest status in the
- // interface control dialog
-// update_interface_list();
-
- }
- }