Skip to content

Commit 0787a3a

Browse files
committed
sending introduction offer is no longer necessary.
1 parent 29233f6 commit 0787a3a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/net/sharksystem/asap/MultiASAPEngineFS_Impl.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,16 @@ public ASAPConnection getASAPConnection(CharSequence recipient) {
342342
public void pushInterests(OutputStream os) throws IOException, ASAPException {
343343
ASAP_1_0 protocol = new ASAP_Modem_Impl();
344344

345-
System.out.println(this.getLogStart() + "start sending interest for each engine");
346345

347346
// in any case: issue an interest for management information first
347+
System.out.println(this.getLogStart() + "send interest on " + ASAP_1_0.ASAP_MANAGEMENT_FORMAT);
348348
protocol.interest(this.owner, null, ASAP_1_0.ASAP_MANAGEMENT_FORMAT,null, -1, -1, os, false);
349349

350+
if(this.folderMap.size() > 0) {
351+
System.out.println(this.getLogStart() + "start sending interest for further apps/formats");
352+
} else {
353+
System.out.println(this.getLogStart() + "no more apps/formats on that engine - no further interests to be sent");
354+
}
350355
// issue an interest for each owner / format combination
351356
for(CharSequence format : this.folderMap.keySet()) {
352357
if(format.toString().equalsIgnoreCase(ASAP_1_0.ASAP_MANAGEMENT_FORMAT)) continue; // already send

src/net/sharksystem/asap/protocol/ASAPPersistentConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private synchronized void checkRunningOnlineMessageSender() {
174174

175175
public void run() {
176176
ASAP_1_0 protocol = new ASAP_Modem_Impl();
177-
177+
/*
178178
// introduce yourself
179179
CharSequence owner = this.multiASAPEngineFS.getOwner();
180180
if(owner != null && owner.length() > 0) {
@@ -190,7 +190,7 @@ public void run() {
190190
// go ahead - no io problem
191191
}
192192
}
193-
193+
*/
194194
try {
195195
// let engine write their interest
196196
this.multiASAPEngineFS.pushInterests(this.os);

0 commit comments

Comments
 (0)