Fix a bug that would result in a very long sleep.  Change has been submitted to the vendor.
Fix a bug that would result in a very long sleep.  Change has been
submitted to the vendor.

Obtained from:	iwasaki

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase