mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-12 19:02:06 +01:00
98a3c46e9a
Using createPacketCollector(filter); sendPacket(packet); was error prone, i.e. the PacketCollector could leak if sendPacket() would throw an exception and the user forgot to call PacketCollector.cancel(). For cases where createPacketCollectorAndSend(IQ) is not sufficient (because we don't send IQs), createPacketCollectorAndSend(PacketFilter, Packet) is now used, which does take care that the PacketCollector does not leak if sendPacket() throws an Exception. |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
build.gradle |