- attempt to further protect threaded socket access

This commit is contained in:
Mark Vejvoda 2013-03-14 19:46:31 +00:00
parent 16d25210e4
commit 9ceaf6cec1
1 changed files with 2 additions and 0 deletions

View File

@ -1676,6 +1676,7 @@ bool Socket::isReadable(bool lockMutex) {
safeMutex.setMutex(dataSynchAccessorRead,CODE_AT_LINE);
}
if(isSocketValid() == false) return false;
FD_SET(sock, &set);
int i = 0;
@ -1723,6 +1724,7 @@ bool Socket::isWritable(struct timeval *timeVal, bool lockMutex) {
if(lockMutex == true) {
safeMutex.setMutex(dataSynchAccessorWrite,CODE_AT_LINE);
}
if(isSocketValid() == false) return false;
FD_SET(sock, &set);
int i = 0;