mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
Use RedisEventArgs
This commit is contained in:
@@ -40,16 +40,19 @@ void AsyncReader::runActivity()
|
||||
try
|
||||
{
|
||||
RedisType::Ptr reply = _client.readReply();
|
||||
redisResponse.notify(this, reply);
|
||||
|
||||
RedisEventArgs args(reply);
|
||||
redisResponse.notify(this, args);
|
||||
|
||||
if ( args.isStopped() ) stop();
|
||||
}
|
||||
catch(TimeoutException&)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
catch(Exception &)
|
||||
catch(Exception& e)
|
||||
{
|
||||
RedisEventArgs args(&e);
|
||||
redisException.notify(this, args);
|
||||
stop();
|
||||
}
|
||||
if (!_activity.isStopped()) Thread::trySleep(100);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user