From: David ‘Bombe’ Roden Date: Thu, 6 Jun 2013 04:38:21 +0000 (+0200) Subject: Check correctly for unknown/unset metadata. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2963e4b6e2e6b50dbfecdb06fcd739592bc3b4d5;p=sonitus.git Check correctly for unknown/unset metadata. --- diff --git a/src/main/java/net/pterodactylus/sonitus/data/source/MultiSource.java b/src/main/java/net/pterodactylus/sonitus/data/source/MultiSource.java index 0ff1126..565ff3e 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/source/MultiSource.java +++ b/src/main/java/net/pterodactylus/sonitus/data/source/MultiSource.java @@ -136,7 +136,7 @@ public class MultiSource extends AbstractFilter { @Override public Metadata metadata() { - if (super.metadata() == null) { + if (super.metadata() == Metadata.UNKNOWN) { /* no metadata yet, wait for it. */ waitForNewSource(); sourceChanged = false;