Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
Backport synchronized send method
Browse files Browse the repository at this point in the history
  • Loading branch information
Berenz committed Jul 28, 2016
1 parent ca47dc3 commit fdbfff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qz/ws/PrintSocket.java
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ private void sendResponse(Session session, JSONObject message) {
sendResponse(session, message.toString());
}

private void sendResponse(Session session, String jsonMsg) {
private synchronized void sendResponse(Session session, String jsonMsg) {
try {
log.info("Response: " + jsonMsg);
session.getRemote().sendString(jsonMsg);
Expand Down

0 comments on commit fdbfff4

Please sign in to comment.