mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-22 17:17:37 +00:00
Don't check for updates if it's a snapshot version
This commit is contained in:
parent
0a3594370a
commit
aa5e184a56
@ -32,7 +32,8 @@ public class RedisConnection extends PlexBase
|
||||
|
||||
public void runAsync(Consumer<Jedis> jedisConsumer)
|
||||
{
|
||||
new Thread(() -> {
|
||||
new Thread(() ->
|
||||
{
|
||||
try (Jedis jedis = getJedis())
|
||||
{
|
||||
jedisConsumer.accept(jedis);
|
||||
|
@ -14,6 +14,11 @@ public class UpdateChecker extends PlexBase
|
||||
|
||||
public boolean check()
|
||||
{
|
||||
if (currentVersion.contains("-SNAPSHOT"))
|
||||
{
|
||||
PlexLog.log("Snapshot version detected, not checking for updates.");
|
||||
return true;
|
||||
}
|
||||
try
|
||||
{
|
||||
String versionLink = "https://plex.us.org/updater/check/";
|
||||
|
@ -11,7 +11,6 @@ import java.time.ZoneId;
|
||||
|
||||
public class LocalDateTimeDeserializer implements JsonDeserializer<LocalDateTime>
|
||||
{
|
||||
|
||||
@Override
|
||||
public LocalDateTime deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user