Minor Update:
- Use Timeout function in SelectableCore
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user