forked from j62/ctbrec
Remove misleading log message
This commit is contained in:
parent
56897436c7
commit
9f13a54eb6
|
@ -12,6 +12,7 @@ import ctbrec.sites.fc2live.Fc2Model;
|
||||||
import ctbrec.ui.JavaFxModel;
|
import ctbrec.ui.JavaFxModel;
|
||||||
import ctbrec.ui.Player;
|
import ctbrec.ui.Player;
|
||||||
import ctbrec.ui.TabProvider;
|
import ctbrec.ui.TabProvider;
|
||||||
|
import ctbrec.ui.controls.Dialogs;
|
||||||
import ctbrec.ui.sites.AbstractSiteUi;
|
import ctbrec.ui.sites.AbstractSiteUi;
|
||||||
|
|
||||||
public class Fc2LiveSiteUi extends AbstractSiteUi {
|
public class Fc2LiveSiteUi extends AbstractSiteUi {
|
||||||
|
@ -56,7 +57,8 @@ public class Fc2LiveSiteUi extends AbstractSiteUi {
|
||||||
Player.play(model, false);
|
Player.play(model, false);
|
||||||
m.closeWebsocket();
|
m.closeWebsocket();
|
||||||
} catch (InterruptedException | IOException e) {
|
} catch (InterruptedException | IOException e) {
|
||||||
LOG.error("Error opening websocket connection", e);
|
LOG.error("Error playing the stream", e);
|
||||||
|
Dialogs.showError("Player", "Error playing the stream", e);
|
||||||
}
|
}
|
||||||
}).start();
|
}).start();
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -357,8 +357,10 @@ public class Fc2Model extends AbstractModel {
|
||||||
});
|
});
|
||||||
synchronized (monitor) {
|
synchronized (monitor) {
|
||||||
// wait at max 10 seconds, otherwise we can assume, that the stream is not available
|
// wait at max 10 seconds, otherwise we can assume, that the stream is not available
|
||||||
LOG.debug("No playlist response for 10 seconds");
|
monitor.wait(TimeUnit.SECONDS.toMillis(20));
|
||||||
monitor.wait(TimeUnit.SECONDS.toMillis(10));
|
}
|
||||||
|
if(playlistUrl == null) {
|
||||||
|
throw new IOException("No playlist response for 20 seconds");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue