summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-21 10:52:31 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-21 22:20:59 +0100
commit3e94de272da73e76219a114395130fd1844e68af (patch)
tree75c8efc7f752e8df0092ee7cbc5f6b744beb952a
parent8a38a21e7c72dd7e92f854710526f6aadaa86535 (diff)
downloadcmumble-3e94de272da73e76219a114395130fd1844e68af.tar.gz
cmumble-3e94de272da73e76219a114395130fd1844e68af.tar.bz2
cmumble-3e94de272da73e76219a114395130fd1844e68af.zip
message: Quit on G_TLS_ERROR_MISC error
Dont know why this happens sometimes, but quit at least. The szenario seems to be: - mute mic - wait around 10 - unmute mic -> G_TLS_ERROR_MSG on next write to socket
-rw-r--r--src/message.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c
index 54d9071..77de64c 100644
--- a/src/message.c
+++ b/src/message.c
@@ -91,7 +91,8 @@ cmumble_recv_msg(struct cmumble *cm)
if (g_error_matches(error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK))
return 0;
- if (g_error_matches(error, G_TLS_ERROR, G_TLS_ERROR_EOF)) {
+ if (g_error_matches(error, G_TLS_ERROR, G_TLS_ERROR_EOF) ||
+ g_error_matches(error, G_TLS_ERROR, G_TLS_ERROR_MISC)) {
g_print("%s\n", error->message);
g_main_loop_quit(cm->loop);
return 0;