Don't check for updates if it's a snapshot version

This commit is contained in:
Telesphoreo 2022-03-05 16:26:17 -06:00
parent 0a3594370a
commit aa5e184a56
3 changed files with 7 additions and 2 deletions

View File

@ -32,7 +32,8 @@ public class RedisConnection extends PlexBase
public void runAsync(Consumer<Jedis> jedisConsumer) public void runAsync(Consumer<Jedis> jedisConsumer)
{ {
new Thread(() -> { new Thread(() ->
{
try (Jedis jedis = getJedis()) try (Jedis jedis = getJedis())
{ {
jedisConsumer.accept(jedis); jedisConsumer.accept(jedis);

View File

@ -14,6 +14,11 @@ public class UpdateChecker extends PlexBase
public boolean check() public boolean check()
{ {
if (currentVersion.contains("-SNAPSHOT"))
{
PlexLog.log("Snapshot version detected, not checking for updates.");
return true;
}
try try
{ {
String versionLink = "https://plex.us.org/updater/check/"; String versionLink = "https://plex.us.org/updater/check/";

View File

@ -11,7 +11,6 @@ import java.time.ZoneId;
public class LocalDateTimeDeserializer implements JsonDeserializer<LocalDateTime> public class LocalDateTimeDeserializer implements JsonDeserializer<LocalDateTime>
{ {
@Override @Override
public LocalDateTime deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException public LocalDateTime deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException
{ {