]> source.dussan.org Git - vaadin-framework.git/commit
Move call to getMessageHandler().onResynchronize(); to right place (#12178) (#12184)
authorAnna Koskinen <Ansku@users.noreply.github.com>
Fri, 22 Jan 2021 11:49:04 +0000 (13:49 +0200)
committerGitHub <noreply@github.com>
Fri, 22 Jan 2021 11:49:04 +0000 (13:49 +0200)
commit096fc1d6921a5fb69fc620d8b60987a512d8e57e
tree39acb4a5971e3a742a793c4e0f030cfe1cbac9a8
parente07e3d02e465ecfa960966ca7432bce11c9701f0
Move call to getMessageHandler().onResynchronize(); to right place (#12178) (#12184)

https://github.com/vaadin/framework/pull/12043 changed resync message sending to be deferred to queue. Now also the setting of the semaphor in message handler needs to be deferred to its right place. Otherwise there is possibility for a timing glitch. I.e. MessageHandler is set to resync handling mode before message is actually send.

Fixes: https://github.com/vaadin/framework/issues/12151
Authored-by: Tatu Lund <tatu@vaadin.com>
client/src/main/java/com/vaadin/client/communication/MessageSender.java
uitest/src/main/java/com/vaadin/tests/push/PushWithPreserveOnRefresh.java