Changeset 65875 in vbox for trunk/src/VBox/Main/src-server/generic
- Timestamp:
- Feb 24, 2017 2:31:34 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 113652
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/generic/USBProxyBackendUsbIp.cpp
r65854 r65875 455 455 bool fDeviceListChangedOrWokenUp = false; 456 456 457 /* Don't start any possibly lengthy operation if we are supposed to return immediately again. */ 458 if (!aMillies) 459 return VINF_SUCCESS; 460 457 461 /* Try to reconnect once when we enter if we lost the connection earlier. */ 458 462 if (m->hSocket == NIL_RTSOCKET) … … 485 489 /* Limit the waiting time to 3sec so we can either reconnect or get a new device list. */ 486 490 if (m->hSocket == NIL_RTSOCKET || m->enmRecvState == kUsbIpRecvState_None) 487 msWait = RT_MIN( 3000, aMillies);491 msWait = RT_MIN(1000, aMillies); 488 492 489 493 rc = RTPoll(m->hPollSet, msWait, &fEventsRecv, &uIdReady); … … 560 564 { 561 565 /* Make sure the device list is clear. */ 566 #if 0 562 567 RTSemFastMutexRequest(m->hMtxDevices); 563 568 if (m->pUsbDevicesCur) … … 569 574 } 570 575 RTSemFastMutexRelease(m->hMtxDevices); 576 #endif 571 577 rc = VINF_SUCCESS; 572 578 }
Note:
See TracChangeset
for help on using the changeset viewer.