Console: Show UPnP status even if disabled (ticket #1459)

This commit is contained in:
zzz
2015-02-04 16:11:17 +00:00
parent 90cf71b5bc
commit 36c45ccb7b

View File

@@ -640,9 +640,13 @@ public class TransportManager implements TransportEventListener {
}
buf.append("</pre>\n");
out.write(buf.toString());
if (SystemVersion.isAndroid()) {
// newer androids crash w/ network on IO thread
if (_upnpManager != null && !SystemVersion.isAndroid())
} else if (_upnpManager != null) {
out.write(_upnpManager.renderStatusHTML());
} else {
out.write("<h3><a name=\"upnp\"></a>" + _("UPnP is not enabled") + "</h3>\n");
}
out.write("</p>\n");
out.flush();
}