summaryrefslogtreecommitdiff
path: root/AudioManagerUtilities/src/CAmSocketHandler.cpp
diff options
context:
space:
mode:
authorChristian Linke <Christian.Linke@bmw.de>2016-04-11 09:13:26 -0700
committerChristian Linke <Christian.Linke@bmw.de>2016-04-11 09:13:26 -0700
commit52ab5fb29834057089a79284193360d956019d5d (patch)
tree235f21a16643d7962d1a346ba5b80860a1996ee0 /AudioManagerUtilities/src/CAmSocketHandler.cpp
parentcf9c4bc83d4c705ca6fbb2f06dec95615063bae1 (diff)
downloadaudiomanager-52ab5fb29834057089a79284193360d956019d5d.tar.gz
make sure that handles are never 0
Signed-off-by: Christian Linke <Christian.Linke@bmw.de>
Diffstat (limited to 'AudioManagerUtilities/src/CAmSocketHandler.cpp')
-rw-r--r--AudioManagerUtilities/src/CAmSocketHandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/AudioManagerUtilities/src/CAmSocketHandler.cpp b/AudioManagerUtilities/src/CAmSocketHandler.cpp
index 18981d2..513c3e0 100644
--- a/AudioManagerUtilities/src/CAmSocketHandler.cpp
+++ b/AudioManagerUtilities/src/CAmSocketHandler.cpp
@@ -202,7 +202,7 @@ am_Error_e CAmSocketHandler::addFDPoll(const int fd, const short event, IAmShPol
++mLastInsertedPollHandle;
if (mLastInsertedPollHandle == MAX_POLLHANDLE)
{
- mLastInsertedPollHandle = 0;
+ mLastInsertedPollHandle = 1;
}
if (mLastInsertedPollHandle==lastHandle)
{
@@ -281,7 +281,7 @@ am_Error_e CAmSocketHandler::addTimer(const timespec timeouts, IAmShTimerCallBac
++mLastInsertedHandle;
if (mLastInsertedHandle == MAX_TIMERHANDLE)
{
- mLastInsertedHandle = 0;
+ mLastInsertedHandle = 1;
}
if (lastTimerHandle==mLastInsertedHandle)
{