Inconsistent synchronization fix for UiWebSocket.connection
Change-Id: I098c5765c89f5885df54578c624ff80fb67727b8
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -103,7 +103,7 @@ public class UiWebSocket | ... | @@ -103,7 +103,7 @@ public class UiWebSocket |
103 | } | 103 | } |
104 | 104 | ||
105 | @Override | 105 | @Override |
106 | - public void onOpen(Connection connection) { | 106 | + public synchronized void onOpen(Connection connection) { |
107 | this.connection = connection; | 107 | this.connection = connection; |
108 | this.control = (FrameConnection) connection; | 108 | this.control = (FrameConnection) connection; |
109 | try { | 109 | try { | ... | ... |
-
Please register or login to post a comment