Type |
Task
|
Priority |
Normal
|
Assignee | |
Version |
none
|
Sprints |
n/a
|
Customer |
n/a
|
Related
-
tygrys/tygrys#227 You are not authorized to access this issue
Issue Votes (0)
Send methods are using methods
fun PacketWriter::write(request: Request<*,*>)
orfun PacketWriter::writeDirectly(stanza: Element)
. Both of those methods are throwing exceptions when executed while connector is not connected or is not initialized.Instead it would be expected that those methods would call callbacks/handlers with "remote server timeout" error informing callers that there was no response (it couldn't be as connection was not ready).
This is mainly due to many calls of methods that eventually send stanza that expect results (success or failure) and would need at the same time to handle thrown exception.