Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-10-08 11:10:06 +02:00
Ensure only 1 server saves config value at a time.
Dieser Commit ist enthalten in:
Ursprung
a64c21da8b
Commit
279162d720
@ -63,10 +63,13 @@ public class ProtocolDetectorService implements Runnable {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Save Server
|
// Ensure we're the only ones writing to the config
|
||||||
|
synchronized (Via.getPlatform().getConfigurationProvider()) {
|
||||||
servers.put(key, serverPing.getVersion().getProtocol());
|
servers.put(key, serverPing.getVersion().getProtocol());
|
||||||
|
}
|
||||||
// Save
|
// Save
|
||||||
Via.getPlatform().getConfigurationProvider().saveConfig();
|
Via.getPlatform().getConfigurationProvider().saveConfig();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren