git-svn-id: svn://db.shs.com.ru/pip@233 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2016-08-19 20:28:55 +00:00
parent 0133533ac2
commit 0da24caef9
2 changed files with 5 additions and 6 deletions

View File

@@ -858,8 +858,7 @@ PIString PIPeer::constructFullPath() const {
int PIPeer::read(void * read_to, int max_size) {
bool empty = read_buffer.isEmpty();
while (empty) piMSleep(10);
while (read_buffer.isEmpty()) piMSleep(10);
PIMutexLocker ml(read_buffer_mutex);
if (!read_buffer.isEmpty()) {
PIByteArray ba = read_buffer.dequeue();