mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 13:09:00 +00:00
(geoip) Fix incorrect synchronization.
This commit is contained in:
parent
30bc3f9281
commit
8f0950fc44
@ -49,7 +49,9 @@ public class GeoIpDictionary {
|
|||||||
public boolean waitReady() {
|
public boolean waitReady() {
|
||||||
while (null == ranges) {
|
while (null == ranges) {
|
||||||
try {
|
try {
|
||||||
this.wait();
|
synchronized (this) {
|
||||||
|
this.wait(1000);
|
||||||
|
}
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user