mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-09 20:31:38 +01:00
Made UnitSemaphoreAccessLock use a while loop to check condition
This commit is contained in:
parent
c0a210956d
commit
36ff87abf2
@ -80,11 +80,9 @@ public class GraphsJSONResolver implements Resolver {
|
||||
|
||||
DataID dataID = getDataID(type);
|
||||
|
||||
JSONStorage.StoredJSON graphJSON = getGraphJSON(request, dataID);
|
||||
|
||||
return Response.builder()
|
||||
.setMimeType(MimeType.JSON)
|
||||
.setJSONContent(graphJSON.json)
|
||||
.setJSONContent(getGraphJSON(request, dataID).json)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ public class UnitSemaphoreAccessLock {
|
||||
public void enter() {
|
||||
try {
|
||||
synchronized (lockObject) {
|
||||
if (accessing.get()) {
|
||||
while (accessing.get()) {
|
||||
lockObject.wait();
|
||||
}
|
||||
accessing.set(true);
|
||||
|
Loading…
Reference in New Issue
Block a user