]> source.dussan.org Git - vaadin-framework.git/commitdiff
Flush the output writer in case of SSE transport as well (#11955)
authorJohannes Dahlström <johannesd@vaadin.com>
Thu, 30 May 2013 12:42:25 +0000 (15:42 +0300)
committerJohannes Dahlström <johannesd@vaadin.com>
Thu, 30 May 2013 12:42:25 +0000 (15:42 +0300)
Change-Id: Id0d82eabab63681b9d01c0312588fdfe1659860f

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

index e740db410d23ffe9a04879a55d010d36c68b15d5..37adc1a108ea8c6040c93f72e02a14eaccd14bdc 100644 (file)
@@ -331,9 +331,9 @@ public class PushHandler implements AtmosphereHandler {
             writer.write(event.getMessage().toString());
 
             switch (resource.transport()) {
-            case SSE:
             case WEBSOCKET:
                 break;
+            case SSE:
             case STREAMING:
                 writer.flush();
                 break;