Changeset 335d45f


Ignore:
Timestamp:
Aug 15, 2009 1:12:26 AM (11 years ago)
Author:
z3d <z3d@…>
Branches:
master
Children:
9a18955
Parents:
c466cd7
Message:

Fix borked snarkmanager.java before anyone notices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java

    rc466cd7 r335d45f  
    325325                            if ( (snark != null) && (snark.acceptor != null) ) {
    326326                                snark.acceptor.restart();
    327                                 addMessage("I2CP listener restarted for " + snark.meta.getName()) +".";
     327                                addMessage("I2CP listener restarted for " + snark.meta.getName());
    328328                            }
    329329                        }
     
    335335        if (shouldAutoStart() != autoStart) {
    336336            _config.setProperty(PROP_AUTO_START, autoStart + "");
    337             addMessage("Autostart of torrents set to " + autoStart);
    338             changed = true + ".";
     337            addMessage("Adjusted autostart to " + autoStart);
     338            changed = true;
    339339        }
    340340        if (_util.shouldUseOpenTrackers() != useOpenTrackers) {
     
    392392            filename = sfile.getCanonicalPath();
    393393        } catch (IOException ioe) {
    394             _log.error("Unable to add the torrent " + filename, ioe) + ".";
    395             addMessage("ERR: Could not add the torrent '" + filename + "': " + ioe.getMessage()) + ".";
     394            _log.error("Unable to add the torrent " + filename, ioe);
     395            addMessage("ERR: Could not add the torrent '" + filename + "': " + ioe.getMessage());
    396396            return;
    397397        }
     
    432432                    }
    433433                } catch (IOException ioe) {
    434                     addMessage("Torrent in " + sfile.getName() + " is invalid: " + ioe.getMessage()) +".";
     434                    addMessage("Torrent in " + sfile.getName() + " is invalid: " + ioe.getMessage());
    435435                    if (sfile.exists())
    436436                        sfile.delete();
Note: See TracChangeset for help on using the changeset viewer.