aboutsummaryrefslogtreecommitdiff
path: root/src/Socket.cpp
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-10-16 05:23:12 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-10-16 05:23:14 +0200
commite0511ecead4d98ed84e18960a2f23cfe707b5a28 (patch)
treeef07ffb6234c868f78a642ef29c724d9edeac0ec /src/Socket.cpp
parenteda94456add9a65d1821302e343bef4021d2a773 (diff)
Add more state functions
Diffstat (limited to 'src/Socket.cpp')
-rw-r--r--src/Socket.cpp6
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