| | |
| | | long endTime = System.currentTimeMillis() + 5000; |
| | | int postConnectAfter = postConnectBefore; |
| | | |
| | | while ((System.currentTimeMillis() < endTime) |
| | | && (postConnectAfter == postConnectBefore)) |
| | | while (System.currentTimeMillis() < endTime |
| | | && postConnectAfter == postConnectBefore) |
| | | { |
| | | Thread.sleep(10); |
| | | postConnectAfter = InvocationCounterPlugin.getPostConnectCount(); |
| | |
| | | // Don't wait more than 5 seconds |
| | | endTime = System.currentTimeMillis() + 5000; |
| | | postDisconnectAfter = postDisconnectBefore; |
| | | while ((System.currentTimeMillis() < endTime) |
| | | && (postDisconnectAfter == postDisconnectBefore)) |
| | | while (System.currentTimeMillis() < endTime |
| | | && postDisconnectAfter == postDisconnectBefore) |
| | | { |
| | | Thread.sleep(10); |
| | | postDisconnectAfter = InvocationCounterPlugin.getPostDisconnectCount(); |