mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-23 01:27: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)
|
public void runAsync(Consumer<Jedis> jedisConsumer)
|
||||||
{
|
{
|
||||||
new Thread(() -> {
|
new Thread(() ->
|
||||||
|
{
|
||||||
try (Jedis jedis = getJedis())
|
try (Jedis jedis = getJedis())
|
||||||
{
|
{
|
||||||
jedisConsumer.accept(jedis);
|
jedisConsumer.accept(jedis);
|
||||||
|
@ -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/";
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user