diff --git a/client/src/main/java/com/vaadin/client/communication/MessageSender.java b/client/src/main/java/com/vaadin/client/communication/MessageSender.java index 9a443adb2ec..969e38ef5d7 100644 --- a/client/src/main/java/com/vaadin/client/communication/MessageSender.java +++ b/client/src/main/java/com/vaadin/client/communication/MessageSender.java @@ -127,6 +127,7 @@ private void doSendInvocationsToServer() { } if (resynchronizeRequested) { getLogger().info("Resynchronizing from server"); + getMessageHandler().onResynchronize(); extraJson.put(ApplicationConstants.RESYNCHRONIZE_ID, true); resynchronizeRequested = false; } @@ -356,7 +357,6 @@ private VLoadingIndicator getLoadingIndicator() { * state from the server */ public void resynchronize() { - getMessageHandler().onResynchronize(); getLogger().info("Resynchronize from server requested"); resynchronizeRequested = true; sendInvocationsToServer();