make websocket send threadsafe

This commit is contained in:
Lee moon soo 2016-10-06 08:01:26 +09:00
parent 578fdf3e06
commit 0b60743530

View file

@ -65,7 +65,7 @@ public class NotebookSocket extends WebSocketAdapter {
return protocol;
}
public void send(String serializeMessage) throws IOException {
public synchronized void send(String serializeMessage) throws IOException {
connection.getRemote().sendString(serializeMessage);
}