diff --git a/SelectableCore.cpp b/SelectableCore.cpp index eb1e977..d0153dd 100644 --- a/SelectableCore.cpp +++ b/SelectableCore.cpp @@ -1098,7 +1098,6 @@ int CSelectableCore::Input( const char * IOName, const char * Data, int Len ) bool CSelectableCore::Process() { THandle * Handle = NULL; - long Duration = 0; // Check all handles Handle = FirstHandle; @@ -1115,8 +1114,7 @@ bool CSelectableCore::Process() if (Handle->InBuffer && (Handle->InBuffer->Len() > 0)) { // Check duration since last PortIn - Duration = TimePassed( Handle->InStart ); - if (Duration > Handle->InTimeout) + if (Timeout( Handle->InStart, Handle->InTimeout )) { // Process Input ProcessBuffer( Handle, true );