Changeset 2245 for trunk/autoquest-htmlmonitor
- Timestamp:
- 12/11/17 12:13:10 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorLogManager.java
r1839 r2245 115 115 */ 116 116 @Override 117 public void handleMessage(HtmlClientInfos clientInfos,118 HtmlGUIElement guiStructure,119 HtmlEvent[] events)117 public synchronized void handleMessage(HtmlClientInfos clientInfos, 118 HtmlGUIElement guiStructure, 119 HtmlEvent[] events) 120 120 { 121 121 HtmlMonitorOutputWriter writer = … … 124 124 try { 125 125 if (writer == null) { 126 synchronized (this) { 127 writer = writers.get(clientInfos.getClientId() + clientInfos.getWebAppId()); 128 if (writer == null) { 129 writer = new HtmlMonitorOutputWriter 130 (logFileBaseDir, clientInfos.getWebAppId(), 131 clientInfos.getClientId(), clientInfos.getUserAgent()); 126 writer = new HtmlMonitorOutputWriter 127 (logFileBaseDir, clientInfos.getWebAppId(), 128 clientInfos.getClientId(), clientInfos.getUserAgent()); 132 129 133 writer.init(); 134 writer.start(); 135 writers.put(clientInfos.getClientId() + clientInfos.getWebAppId(), writer); 136 } 137 } 130 writer.init(); 131 writer.start(); 132 writers.put(clientInfos.getClientId() + clientInfos.getWebAppId(), writer); 138 133 } 139 134
Note: See TracChangeset
for help on using the changeset viewer.