projects
/
jSite.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version 0.4.6: improved handling of closed connections; fix bug in node-hostname...
[jSite.git]
/
src
/
de
/
todesbaum
/
jsite
/
application
/
ProjectInserter.java
diff --git
a/src/de/todesbaum/jsite/application/ProjectInserter.java
b/src/de/todesbaum/jsite/application/ProjectInserter.java
index
03072f8
..
d525ddb
100644
(file)
--- a/
src/de/todesbaum/jsite/application/ProjectInserter.java
+++ b/
src/de/todesbaum/jsite/application/ProjectInserter.java
@@
-48,7
+48,7
@@
import de.todesbaum.util.io.StreamCopier;
/**
* @author David Roden <droden@gmail.com>
/**
* @author David Roden <droden@gmail.com>
- * @version $Id: ProjectInserter.java 4
40 2006-03-30 09:31:25
Z bombe $
+ * @version $Id: ProjectInserter.java 4
86 2006-04-27 10:58:34
Z bombe $
*/
public class ProjectInserter implements FileScannerListener, Runnable {
*/
public class ProjectInserter implements FileScannerListener, Runnable {
@@
-240,12
+240,19
@@
public class ProjectInserter implements FileScannerListener, Runnable {
/* create connection to node */
Connection connection = freenetInterface.getConnection("project-insert-" + counter++);
/* create connection to node */
Connection connection = freenetInterface.getConnection("project-insert-" + counter++);
+ boolean connected = false;
+ Throwable cause = null;
try {
try {
- connection.connect();
+ connect
ed = connect
ion.connect();
} catch (IOException e1) {
} catch (IOException e1) {
- fireProjectInsertFinished(false, e1);
+ cause = e1;
+ }
+
+ if (!connected) {
+ fireProjectInsertFinished(false, cause);
return;
}
return;
}
+
Client client = new Client(connection);
/* create containers */
Client client = new Client(connection);
/* create containers */