Logging
This commit is contained in:
parent
16efe49324
commit
e00c653c23
|
@ -341,6 +341,7 @@ public class ThumbCell extends StackPane {
|
|||
};
|
||||
|
||||
private void startPlayer() {
|
||||
// TODO if manual choice of stream quality is enabled, do the same thing as starting a download here
|
||||
try {
|
||||
StreamInfo streamInfo = Chaturbate.getStreamInfo(model, client);
|
||||
if(streamInfo.room_status.equals("public")) {
|
||||
|
|
|
@ -2,6 +2,7 @@ package ctbrec.ui;
|
|||
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.SocketTimeoutException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
|
@ -226,7 +227,12 @@ public class ThumbOverviewTab extends Tab implements TabSelectionListener {
|
|||
alert.setTitle("Error");
|
||||
alert.setHeaderText("Couldn't fetch model list");
|
||||
if(event.getSource().getException() != null) {
|
||||
alert.setContentText(event.getSource().getException().getLocalizedMessage());
|
||||
if(event.getSource().getException() instanceof SocketTimeoutException) {
|
||||
LOG.debug("Fetching model list timed out");
|
||||
return;
|
||||
} else {
|
||||
alert.setContentText(event.getSource().getException().getLocalizedMessage());
|
||||
}
|
||||
} else {
|
||||
alert.setContentText(event.getEventType().toString());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue