mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 02:22:52 +01:00
bug 11137: don't start HTTP listen if it is already started
This commit is contained in:
parent
11d06f3d6a
commit
085bd36035
@ -318,7 +318,7 @@ public class ConsoleProxyResource extends ServerResourceBase implements ServerRe
|
||||
|
||||
private void launchConsoleProxy(final byte[] ksBits, final String ksPassword) {
|
||||
final Object resource = this;
|
||||
|
||||
if(_consoleProxyMain == null) {
|
||||
_consoleProxyMain = new Thread(new Runnable() {
|
||||
public void run() {
|
||||
try {
|
||||
@ -350,6 +350,9 @@ public class ConsoleProxyResource extends ServerResourceBase implements ServerRe
|
||||
}, "Console-Proxy-Main");
|
||||
_consoleProxyMain.setDaemon(true);
|
||||
_consoleProxyMain.start();
|
||||
} else {
|
||||
s_logger.error("com.cloud.consoleproxy.ConsoleProxy is already running");
|
||||
}
|
||||
}
|
||||
|
||||
public boolean authenticateConsoleAccess(String host, String port, String vmId, String sid, String ticket) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user