Skip to content

Commit 6020e9a

Browse files
committed
bug fix: 2nd message is transfered now.
1 parent d1ede45 commit 6020e9a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/net/sharksystem/asap/ASAPEngine.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ public CharSequence getFormat() {
736736
// return this.
737737
// }
738738

739-
/**
739+
/* old
740740
* Peers in ad-hoc networks have the tendency to establish two channels
741741
* simultaneously. It's due to the lack of a controlling server instance
742742
* and the - wanted - equality of each peers. We should suppress those
@@ -745,15 +745,24 @@ public CharSequence getFormat() {
745745
* @param peer
746746
* @return
747747
*/
748+
749+
/**
750+
* Security / Permission module is due to undergo a deep review - returns always true until than.
751+
* @param peer
752+
* @return
753+
*/
748754
private synchronized boolean permission2ProceedConversation(String peer) {
755+
return true;
749756
// if that peer is not in the list - go ahead
757+
/*
750758
boolean goAhead = !this.activePeers.contains(peer);
751759
if(goAhead) {
752760
// add that peer - an other call will fail.
753761
this.activePeers.add(peer);
754762
}
755763
756764
return goAhead;
765+
*/
757766
}
758767

759768
/**

0 commit comments

Comments
 (0)