mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
Add filter information to NoResponseException
in order to aid debugging errors. This made it necessary to override 'toString()' for all filters in Smack.
This commit is contained in:
parent
d415661e35
commit
887c6114b7
24 changed files with 210 additions and 91 deletions
|
@ -175,11 +175,8 @@ public class FaultTolerantNegotiator extends StreamNegotiator {
|
|||
this.collector = collector;
|
||||
}
|
||||
|
||||
public InputStream call() throws XMPPErrorException, InterruptedException, SmackException {
|
||||
Stanza streamInitiation = collector.nextResult();
|
||||
if (streamInitiation == null) {
|
||||
throw new NoResponseException(connection);
|
||||
}
|
||||
public InputStream call() throws XMPPErrorException, InterruptedException, NoResponseException, SmackException {
|
||||
Stanza streamInitiation = collector.nextResultOrThrow();
|
||||
StreamNegotiator negotiator = determineNegotiator(streamInitiation);
|
||||
return negotiator.negotiateIncomingStream(streamInitiation);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue