aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/tls.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-11-22 20:06:50 +0100
committerfiaxh <git@mx.ax.lt>2017-11-23 01:28:29 +0100
commit9165c4db278b2d3da636d53e89c3b80cff66977f (patch)
tree84f227a12389ec2b3c3c7a578f913bc763760b53 /xmpp-vala/src/module/tls.vala
parentde133218dab0ac1729dbfc32177979133c15f53b (diff)
downloaddino-9165c4db278b2d3da636d53e89c3b80cff66977f.tar.gz
dino-9165c4db278b2d3da636d53e89c3b80cff66977f.zip
Async service lookup, connect and write
Diffstat (limited to 'xmpp-vala/src/module/tls.vala')
-rw-r--r--xmpp-vala/src/module/tls.vala6
1 files changed, 1 insertions, 5 deletions
diff --git a/xmpp-vala/src/module/tls.vala b/xmpp-vala/src/module/tls.vala
index dd4fd82d..dcd7ab40 100644
--- a/xmpp-vala/src/module/tls.vala
+++ b/xmpp-vala/src/module/tls.vala
@@ -53,11 +53,7 @@ namespace Xmpp.Tls {
server_requires_tls = true;
}
if (server_requires_tls || require) {
- try {
- stream.write(new StanzaNode.build("starttls", NS_URI).add_self_xmlns());
- } catch (IOStreamError e) {
- stderr.printf("Failed to request TLS: %s\n", e.message);
- }
+ stream.write(new StanzaNode.build("starttls", NS_URI).add_self_xmlns());
}
if (identity == null) {
identity = new NetworkService("xmpp-client", "tcp", stream.remote_name);