2007-01-17 zzz

* i2psnark: Fix crash when autostart off and
      tcrrent started manually
This commit is contained in:
zzz
2007-01-16 06:20:23 +00:00
committed by zzz
parent 7f2a0457bf
commit 40d209dd7c
3 changed files with 9 additions and 3 deletions

View File

@ -398,6 +398,8 @@ public class Snark
* Start up contacting peers and querying the tracker
*/
public void startTorrent() {
boolean ok = I2PSnarkUtil.instance().connect();
if (!ok) fatal("Unable to connect to I2P");
if (coordinator == null) {
I2PServerSocket serversocket = I2PSnarkUtil.instance().getServerSocket();
if (serversocket == null)