fixed ParallelSocketAcceptor

This commit is contained in:
Guenter Obiltschnig 2014-11-20 11:36:26 +01:00
parent 599c4cb3aa
commit f9f8d21e0b

View File

@ -108,8 +108,9 @@ public:
/// Sets the reactor for this acceptor.
{
_pReactor = &reactor;
if (!_pReactor->hasEventHandler(_socket, Poco::Observer<SocketAcceptor,
ReadableNotification>(*this, &SocketAcceptor::onAccept)))
if (!_pReactor->hasEventHandler(_socket,
Poco::Observer<ParallelSocketAcceptor,
ReadableNotification>(*this, &ParallelSocketAcceptor::onAccept)))
{
registerAcceptor(reactor);
}