diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-16 05:23:12 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 22:56:48 +0200 |
commit | cf5bcde77556847075e6cbdac9426892844ee643 (patch) | |
tree | a3bce8388280aa2453c669634427de776520b630 /src/Socket.cpp | |
parent | c47870421f189eb98fc66e912693d73fbd8477ee (diff) |
Add more state functions
Diffstat (limited to 'src/Socket.cpp')
-rw-r--r-- | src/Socket.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Socket.cpp b/src/Socket.cpp index 9c8da69..a078cab 100644 --- a/src/Socket.cpp +++ b/src/Socket.cpp @@ -28,13 +28,13 @@ namespace sibs { eid = other.eid; udtSocket = other.udtSocket; - other.eid = 0; - other.udtSocket = 0; + other.eid = -1; + other.udtSocket = -1; } Socket::~Socket() { - UDT::close(udtSocket); UDT::epoll_remove_usock(eid, udtSocket); + UDT::close(udtSocket); } }
\ No newline at end of file |