diff --git a/include/amqpcpp/libev.h b/include/amqpcpp/libev.h index 17c6c346..705c9851 100644 --- a/include/amqpcpp/libev.h +++ b/include/amqpcpp/libev.h @@ -460,19 +460,19 @@ class LibEvHandler : public TcpHandler return _wrappers.back(); } +protected: /** * Method that is called by AMQP-CPP to register a filedescriptor for readability or writability * @param connection The TCP connection object that is reporting * @param fd The filedescriptor to be monitored * @param flags Should the object be monitored for readability or writability? */ - virtual void monitor(TcpConnection *connection, int fd, int flags) override final + virtual void monitor(TcpConnection *connection, int fd, int flags) override { // lookup the appropriate wrapper and start monitoring lookup(connection).monitor(fd, flags); } -protected: /** * Method that is called when the heartbeat timeout is negotiated between the server and the client. * @param connection The connection that suggested a heartbeat timeout