Diff between 95055def8cd29810bcc7a97bcd5ad95c74d314a6 and df891f0ff44e0d67c4e60bd6f9e03b89a316164e

Changed Files

File Additions Deletions Status
tools/sco-tester.c +3 -0 modified

Full Patch

diff --git a/tools/sco-tester.c b/tools/sco-tester.c
index e688834..b88631d 100644
--- a/tools/sco-tester.c
+++ b/tools/sco-tester.c
@@ -821,6 +821,9 @@ static gboolean sco_connect_cb(GIOChannel *io, GIOCondition cond,
 					errno);
 			err = -errno;
 		}
+
+		/* Don't close the socket until all data is sent */
+		g_io_channel_set_close_on_unref(io, FALSE);
 	}
 
 	if (scodata->shutdown) {