Skip to content

Commit

Permalink
set the ITcpService interface's destroy function is virtual.
Browse files Browse the repository at this point in the history
  • Loading branch information
IronsDu committed Mar 28, 2022
1 parent 3883b2d commit 88d8ff2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/brynet/base/Timer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Timer final
friend class TimerMgr;
};

class RepeatTimer
class RepeatTimer final
{
public:
using Ptr = std::shared_ptr<RepeatTimer>;
Expand Down
1 change: 1 addition & 0 deletions include/brynet/net/TcpService.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class ITcpService
using Ptr = std::shared_ptr<ITcpService>;

public:
virtual ~ITcpService() = default;
virtual bool addTcpConnection(TcpSocket::Ptr socket, ConnectionOption options) = 0;
};

Expand Down

0 comments on commit 88d8ff2

Please sign in to comment.