1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-24 04:52:05 +01:00

Fix progress listener from merge

This commit is contained in:
vanitasvitae 2017-08-22 16:08:14 +02:00
parent 1ec9768f58
commit 6155b90be1
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -30,6 +30,7 @@ import java.util.Random;
import org.jivesoftware.smack.SmackException;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smackx.jingle.element.JingleReasonElement;
import org.jivesoftware.smackx.jingle.transport.jingle_ibb.JingleIBBTransportManager;
import org.jivesoftware.smackx.jingle.transport.jingle_s5b.JingleS5BTransportManager;
import org.jivesoftware.smackx.jingle_filetransfer.JingleFileTransferManager;
@ -112,14 +113,11 @@ public class JetIntegrationTest extends AbstractOmemoIntegrationTest {
}
@Override
public void progress(float percent) {
}
@Override
public void finished() {
public void terminated(JingleReasonElement.Reason reason) {
if (reason == JingleReasonElement.Reason.success) {
received.signal();
}
}
});
offer.accept(conTwo, targetStream);
} catch (InterruptedException | XMPPException.XMPPErrorException | SmackException.NotConnectedException | SmackException.NoResponseException | IOException e) {