summaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-04-25 14:44:36 +0300
committerVaadin Code Review <review@vaadin.com>2013-04-26 05:52:06 +0000
commitb4218b866880b4071e56ed76ff061010787fadd6 (patch)
treedf38bd989c45ac8697f47358be337e6c0bb78c45 /server/src
parentecc91e1b7bfe23f2d3576d446176999715c2731c (diff)
downloadvaadin-framework-b4218b866880b4071e56ed76ff061010787fadd6.tar.gz
vaadin-framework-b4218b866880b4071e56ed76ff061010787fadd6.zip
Ensure RPC are not delivered to closed UIs (#11714)
Change-Id: I7fadaa5d5190c36cd83a06249d7ae1d4475724e0
Diffstat (limited to 'server/src')
-rw-r--r--server/src/com/vaadin/server/communication/ServerRpcHandler.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/src/com/vaadin/server/communication/ServerRpcHandler.java b/server/src/com/vaadin/server/communication/ServerRpcHandler.java
index 64f8dfb223..62949615fb 100644
--- a/server/src/com/vaadin/server/communication/ServerRpcHandler.java
+++ b/server/src/com/vaadin/server/communication/ServerRpcHandler.java
@@ -197,6 +197,20 @@ public class ServerRpcHandler implements Serializable {
getLogger().warning(msg);
continue;
}
+ if (connector.getUI().isClosing()) {
+ String msg = "Ignoring RPC call for connector "
+ + connector.getClass().getName();
+ if (connector instanceof Component) {
+ String caption = ((Component) connector).getCaption();
+ if (caption != null) {
+ msg += ", caption=" + caption;
+ }
+ }
+ msg += " in closed UI";
+ getLogger().warning(msg);
+ continue;
+
+ }
if (invocation instanceof ServerRpcMethodInvocation) {
try {