fail jingle file transfer if axolotl key message could not be created. fixes #1576

This commit is contained in:
Daniel Gultsch 2015-11-26 06:52:46 +01:00
parent a557d38e4d
commit ecb4615f2a

View file

@ -221,7 +221,11 @@ public class JingleConnection implements Transferable {
conversation.getAccount().getAxolotlService().prepareKeyTransportMessage(conversation.getContact(), new OnMessageCreatedCallback() { conversation.getAccount().getAxolotlService().prepareKeyTransportMessage(conversation.getContact(), new OnMessageCreatedCallback() {
@Override @Override
public void run(XmppAxolotlMessage xmppAxolotlMessage) { public void run(XmppAxolotlMessage xmppAxolotlMessage) {
init(message, xmppAxolotlMessage); if (xmppAxolotlMessage != null) {
init(message, xmppAxolotlMessage);
} else {
fail();
}
} }
}); });
} else { } else {