瀏覽代碼

Update state before purging outgoing queue (#11768)

Change-Id: I83ad088da0aa173e5e912b9059757274526d5c25
tags/7.1.0
Leif Åstrand 11 年之前
父節點
當前提交
0f5831df6f
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4
    5
      client/src/com/vaadin/client/communication/AtmospherePushConnection.java

+ 4
- 5
client/src/com/vaadin/client/communication/AtmospherePushConnection.java 查看文件

@@ -220,14 +220,13 @@ public class AtmospherePushConnection implements PushConnection {

VConsole.log("Push connection established using " + transport);

for (String message : messageQueue) {
push(message);
}
messageQueue.clear();

switch (state) {
case CONNECT_PENDING:
state = State.CONNECTED;
for (String message : messageQueue) {
push(message);
}
messageQueue.clear();
break;
case DISCONNECT_PENDING:
// Set state to connected to make disconnect close the connection

Loading…
取消
儲存