]> source.dussan.org Git - vaadin-framework.git/commitdiff
Exception on closing inactive UI causes issues (#14651)
authorSergey Budkin <sergey@vaadin.com>
Mon, 22 Sep 2014 07:43:02 +0000 (10:43 +0300)
committerMarkus Koivisto <markus@vaadin.com>
Tue, 7 Oct 2014 14:26:25 +0000 (17:26 +0300)
Added proposed fix

Change-Id: I88085546c2bf47f1e0952d64efadfc40bac12987

server/src/com/vaadin/server/communication/AtmospherePushConnection.java

index f8ef360eda415a5d8596226c2e87c119a39ac5ef..a274fbbb9b736aa3f242905287aeb63f30fadb19 100644 (file)
@@ -269,6 +269,7 @@ public class AtmospherePushConnection implements PushConnection {
             // the resource is already resumed; this is a bit hacky and should
             // be implemented in a better way in 7.2.
             resource = null;
+            state = State.DISCONNECTED;
             return;
         }