Skip to content

Commit

Permalink
Use the SocketConnector local port.
Browse files Browse the repository at this point in the history
  • Loading branch information
ened committed Jan 22, 2015
1 parent 0bc1b6f commit 6477025
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ synchronized public int addConnector(String host, int port) throws IOException {
synchronized public void removeConnector(String host, int port) {
Connector[] connectors = server.getConnectors();
for (Connector connector : connectors) {
if (connector.getHost().equals(host) && connector.getPort() == port) {
if (connector.getHost().equals(host) && connector.getLocalPort() == port) {
if (connector.isStarted() || connector.isStarting()) {
try {
connector.stop();
Expand Down

0 comments on commit 6477025

Please sign in to comment.