Fix runtime criticals related to jingle file transfer
This commit is contained in:
parent
2cda20d589
commit
fe9e8f0c2b
|
@ -206,7 +206,11 @@ public class JingleFileSender : FileSender, Object {
|
|||
throw new FileSendError.ENCRYPTION_FAILED("Should have created a precondition, but did not");
|
||||
}
|
||||
}
|
||||
try {
|
||||
yield stream.get_module(Xep.JingleFileTransfer.Module.IDENTITY).offer_file_stream(stream, full_jid, file_transfer.input_stream, file_transfer.server_file_name, file_meta.size, precondition_name, precondition_options);
|
||||
} catch (Error e) {
|
||||
throw new FileSendError.UPLOAD_FAILED(@"offer_file_stream failed: $(e.message)");
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -291,7 +291,7 @@ class Parameters : Jingle.TransportParameters, Object {
|
|||
}
|
||||
remote_sent_selected_candidate = true;
|
||||
remote_selected_candidate = candidate;
|
||||
debug("Remote selected candidate %s", candidate.cid);
|
||||
debug("Remote selected candidate %s", candidate != null ? candidate.cid : "(null)");
|
||||
try_completing_negotiation();
|
||||
}
|
||||
private void handle_activated(string cid) throws Jingle.IqError {
|
||||
|
|
Loading…
Reference in a new issue