event/SocketEvent: allow Close() without socket
This commit is contained in:
@@ -75,8 +75,7 @@ public:
|
||||
OneServerSocket &operator=(const OneServerSocket &other) = delete;
|
||||
|
||||
~OneServerSocket() noexcept {
|
||||
if (IsDefined())
|
||||
Close();
|
||||
Close();
|
||||
}
|
||||
|
||||
[[nodiscard]] unsigned GetSerial() const noexcept {
|
||||
|
||||
Reference in New Issue
Block a user