소스 검색

Avoid excessive logging related to response handling locks (#11702)

Change-Id: I0e50663a2500c56a042d20c80909aacfc707a5dd
tags/7.1.0.beta1
Leif Åstrand 11 년 전
부모
커밋
dfe27b2deb
1개의 변경된 파일14개의 추가작업 그리고 2개의 파일을 삭제
  1. 14
    2
      client/src/com/vaadin/client/ApplicationConnection.java

+ 14
- 2
client/src/com/vaadin/client/ApplicationConnection.java 파일 보기

@@ -3287,6 +3287,14 @@ public class ApplicationConnection {
Timer forceHandleMessage = new Timer() {
@Override
public void run() {
if (responseHandlingLocks.isEmpty()) {
/*
* Timer fired but there's nothing to clear. This can happen
* with IE8 as Timer.cancel is not always effective (see GWT
* issue 8101).
*/
return;
}
VConsole.log("WARNING: reponse handling was never resumed, forcibly removing locks...");
responseHandlingLocks.clear();
handlePendingMessages();
@@ -3311,9 +3319,13 @@ public class ApplicationConnection {
public void resumeResponseHandling(Object lock) {
responseHandlingLocks.remove(lock);
if (responseHandlingLocks.isEmpty()) {
VConsole.log("No more response handling locks, handling pending requests.");
// Cancel timer that breaks the lock
forceHandleMessage.cancel();
handlePendingMessages();

if (!pendingUIDLMessages.isEmpty()) {
VConsole.log("No more response handling locks, handling pending requests.");
handlePendingMessages();
}
}
}


Loading…
취소
저장