We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09d0453 commit 7ba87f0Copy full SHA for 7ba87f0
2 files changed
src/transport/raw/TCP.cpp
@@ -53,11 +53,7 @@ constexpr int kListenBacklogSize = 2;
53
54
} // namespace
55
56
-TCPBase::~TCPBase()
57
-{
58
- // Call Close to free the listening socket and close all active connections.
59
- Close();
60
-}
+TCPBase::~TCPBase() = default;
61
62
void TCPBase::CloseActiveConnections()
63
{
src/transport/raw/TCP.h
@@ -338,7 +338,13 @@ class TCP : public TCPBase
338
}
339
340
341
- ~TCP() override { mPendingPackets.ReleaseAll(); }
+ ~TCP() override
342
+ {
343
+ mPendingPackets.ReleaseAll();
344
+
345
+ // Call Close to free the listening socket and close all active connections.
346
+ Close();
347
+ }
348
349
private:
350
ActiveTCPConnectionState mConnectionsBuffer[kActiveConnectionsSize];
0 commit comments