diff options
author | Christian Linke <Christian.Linke@bmw.de> | 2016-04-11 09:13:26 -0700 |
---|---|---|
committer | Christian Linke <Christian.Linke@bmw.de> | 2016-04-11 09:13:26 -0700 |
commit | 52ab5fb29834057089a79284193360d956019d5d (patch) | |
tree | 235f21a16643d7962d1a346ba5b80860a1996ee0 /AudioManagerUtilities/src/CAmSocketHandler.cpp | |
parent | cf9c4bc83d4c705ca6fbb2f06dec95615063bae1 (diff) | |
download | audiomanager-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.cpp | 4 |
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) { |