diff options
author | Mike Ruprecht <cmaiku@gmail.com> | 2016-09-15 13:31:06 -0500 |
---|---|---|
committer | Mike Ruprecht <cmaiku@gmail.com> | 2016-09-15 13:31:06 -0500 |
commit | ccc22e69d7e868aefa7106a4513b16ee1e726e86 (patch) | |
tree | c8e0e385c5a9e52511c0619e0127e42e739296ec /libpurple/protocols/facebook/facebook.c | |
parent | ad793c157cd207e5f606ffd7f9c38cc3fd444cd9 (diff) | |
download | pidgin-ccc22e69d7e868aefa7106a4513b16ee1e726e86.tar.gz |
facebook: Port from sslconn to Gio
This patch ports usage of libpurple's sslconn.[ch] to native Gio.
There is potential to improve this by allowing for MqttMessages to
use external bytes without copying (provided they're consumed soon
enough) and to "steal" the bytes from a MqttMessage for sending.
Unfortunately GByteArray doesn't have all the memory management API
GBytes has.
Diffstat (limited to 'libpurple/protocols/facebook/facebook.c')
-rw-r--r-- | libpurple/protocols/facebook/facebook.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpurple/protocols/facebook/facebook.c b/libpurple/protocols/facebook/facebook.c index 3afde70ae5..a116f608ec 100644 --- a/libpurple/protocols/facebook/facebook.c +++ b/libpurple/protocols/facebook/facebook.c @@ -332,8 +332,8 @@ fb_cb_api_error(FbApi *api, GError *error, gpointer data) gc = fb_data_get_connection(fata); - if (error->domain == FB_MQTT_SSL_ERROR) { - purple_connection_ssl_error(gc, error->code); + if (error->domain == G_IO_ERROR) { + purple_connection_g_error(gc, error); return; } |