Skip to content

Commit 88d8ff2

Browse files
committed
set the ITcpService interface's destroy function is virtual.
1 parent 3883b2d commit 88d8ff2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/brynet/base/Timer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class Timer final
7676
friend class TimerMgr;
7777
};
7878

79-
class RepeatTimer
79+
class RepeatTimer final
8080
{
8181
public:
8282
using Ptr = std::shared_ptr<RepeatTimer>;

include/brynet/net/TcpService.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class ITcpService
1212
using Ptr = std::shared_ptr<ITcpService>;
1313

1414
public:
15+
virtual ~ITcpService() = default;
1516
virtual bool addTcpConnection(TcpSocket::Ptr socket, ConnectionOption options) = 0;
1617
};
1718

0 commit comments

Comments
 (0)