aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597>2012-11-23 08:35:46 +0000
committerkurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597>2012-11-23 08:35:46 +0000
commit0aaabd44c298af37c93704a4b96dfd2be2975150 (patch)
treeb15c150d870253a515a067a8a99e48ae1c18fc4c
parentc9f268dbed48bd8664a5c0679b5f5490e6571a28 (diff)
r4408 in private:
Add code from David to keep the transceiver running when OpenBTS crashes and check if it is running when starting up. git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4512 19bc5d8c-e614-43d4-8b26-e1612bc8e597
-rw-r--r--CommonLibs/Sockets.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/CommonLibs/Sockets.cpp b/CommonLibs/Sockets.cpp
index 992a486..b343b7e 100644
--- a/CommonLibs/Sockets.cpp
+++ b/CommonLibs/Sockets.cpp
@@ -180,7 +180,7 @@ int DatagramSocket::read(char* buffer)
int DatagramSocket::read(char* buffer, unsigned timeout)
{
fd_set fds;
- FD_SET(mSocketFD,&fds);
+ FD_ZERO(&fds);
struct timeval tv;
tv.tv_sec = timeout/1000;
tv.tv_usec = (timeout%1000)*1000;