Cyberduck Mountain Duck CLI

Changeset 3446


Ignore:
Timestamp:
Jan 20, 2008 1:36:56 PM (12 years ago)
Author:
dkocher
Message:

#1657

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/ch/cyberduck/core/Rendezvous.java

    r3000 r3446  
    287287                                String fullname, String hostname, int port, TXTRecord txtRecord) {
    288288        log.debug("serviceResolved:" + hostname);
    289         Host host = new Host(hostname, port);
    290         host.setCredentials(Preferences.instance().getProperty("connection.login.name"), null);
    291         if(host.getProtocol().equals(Session.FTP)) {
    292             host.setCredentials(null, null); //use anonymous login for FTP
    293         }
    294         synchronized(this) {
    295             if(null == this.services.put(fullname, host)) {
    296                 this.notifier.serviceResolved(fullname, hostname);
    297             }
     289        try {
     290            Host host = new Host(hostname, port);
     291            host.setCredentials(Preferences.instance().getProperty("connection.login.name"), null);
     292            if(host.getProtocol().equals(Session.FTP)) {
     293                host.setCredentials(null, null); //use anonymous login for FTP
     294            }
     295            synchronized(this) {
     296                if(null == this.services.put(fullname, host)) {
     297                    this.notifier.serviceResolved(fullname, hostname);
     298                }
     299            }
     300        }
     301        finally {
     302            // Note: When the desired results have been returned, the client MUST terminate
     303            // the resolve by calling DNSSDService.stop().
     304            resolver.stop();
    298305        }
    299306    }
Note: See TracChangeset for help on using the changeset viewer.
swiss made software