From 0c51f2b583b1502f8619c2fd3136f99640ad07da Mon Sep 17 00:00:00 2001 From: jrandom Date: Thu, 28 Oct 2004 02:11:52 +0000 Subject: [PATCH] 2004-10-27 jrandom * Fix a strange race condition on i2cp client disconnect. * win98 startup fixes (thanks tester-1 and ardvark!) * include build scripts for the new streaming lib (which is NOT ready for use yet, but you can hack around with it) (enjoy, duck) --- apps/streaming/java/build.xml | 42 +++++++++++++++++++ build.xml | 6 +++ history.txt | 8 +++- installer/resources/i2prouter_win9x.bat | 4 +- .../src/net/i2p/router/RouterVersion.java | 4 +- .../router/client/ClientConnectionRunner.java | 3 +- 6 files changed, 60 insertions(+), 7 deletions(-) create mode 100644 apps/streaming/java/build.xml diff --git a/apps/streaming/java/build.xml b/apps/streaming/java/build.xml new file mode 100644 index 000000000..7f09f7423 --- /dev/null +++ b/apps/streaming/java/build.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build.xml b/build.xml index 8ffc44540..3c9223073 100644 --- a/build.xml +++ b/build.xml @@ -19,6 +19,7 @@ + @@ -46,6 +47,7 @@ + @@ -75,6 +77,7 @@ + @@ -93,6 +96,7 @@ + @@ -158,6 +162,7 @@ + @@ -224,6 +229,7 @@ + diff --git a/history.txt b/history.txt index 3910c51b7..18af3c153 100644 --- a/history.txt +++ b/history.txt @@ -1,4 +1,10 @@ -$Id: history.txt,v 1.55 2004/10/23 20:42:35 jrandom Exp $ +$Id: history.txt,v 1.56 2004/10/24 18:00:44 jrandom Exp $ + +2004-10-27 jrandom + * Fix a strange race condition on i2cp client disconnect. + * win98 startup fixes (thanks tester-1 and ardvark!) + * include build scripts for the new streaming lib (which is NOT ready + for use yet, but you can hack around with it) 2004-10-24 jrandom * Allow explicit inclusion of session tags in the SDK, enabling the diff --git a/installer/resources/i2prouter_win9x.bat b/installer/resources/i2prouter_win9x.bat index 732b234dd..f04a41349 100644 --- a/installer/resources/i2prouter_win9x.bat +++ b/installer/resources/i2prouter_win9x.bat @@ -1,5 +1,3 @@ @echo off -setlocal -REM Isn't it great the lengths we go through to launch a task without a dos box? -start javaw -cp lib\i2p.jar net.i2p.util.ShellCommand i2prouter.bat +start /m I2Psvc.exe -c wrapper.config exit diff --git a/router/java/src/net/i2p/router/RouterVersion.java b/router/java/src/net/i2p/router/RouterVersion.java index 715fdd67e..568b4fcfc 100644 --- a/router/java/src/net/i2p/router/RouterVersion.java +++ b/router/java/src/net/i2p/router/RouterVersion.java @@ -15,9 +15,9 @@ import net.i2p.CoreVersion; * */ public class RouterVersion { - public final static String ID = "$Revision: 1.61 $ $Date: 2004/10/23 20:42:35 $"; + public final static String ID = "$Revision: 1.62 $ $Date: 2004/10/24 18:00:44 $"; public final static String VERSION = "0.4.1.3"; - public final static long BUILD = 2; + public final static long BUILD = 3; public static void main(String args[]) { System.out.println("I2P Router version: " + VERSION); System.out.println("Router ID: " + RouterVersion.ID); diff --git a/router/java/src/net/i2p/router/client/ClientConnectionRunner.java b/router/java/src/net/i2p/router/client/ClientConnectionRunner.java index 2cb0554ee..340f1b7b8 100644 --- a/router/java/src/net/i2p/router/client/ClientConnectionRunner.java +++ b/router/java/src/net/i2p/router/client/ClientConnectionRunner.java @@ -126,7 +126,8 @@ public class ClientConnectionRunner { synchronized (_messages) { _messages.clear(); } - _manager.unregisterConnection(this); + if (_manager != null) + _manager.unregisterConnection(this); if (_currentLeaseSet != null) _context.netDb().unpublish(_currentLeaseSet); _leaseRequest = null;