diff options
author | David Teirney <david@teirney.net> | 2012-06-19 22:33:25 +1200 |
---|---|---|
committer | David Teirney <david@teirney.net> | 2012-06-19 22:33:25 +1200 |
commit | c26f8ea3934eee92bde078c62d4a18d5e9f4d343 (patch) | |
tree | c01aa52806648bbb1771cb943b3d4a4779b79e0c /lib/cmyth | |
parent | 4986553ab1972b41608152c63796c437a7d4aa23 (diff) |
[libcmyth] Add upstream logging if there are leftover bytes in cmyth_conn_connect_file.
Diffstat (limited to 'lib/cmyth')
-rw-r--r-- | lib/cmyth/libcmyth/connection.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/cmyth/libcmyth/connection.c b/lib/cmyth/libcmyth/connection.c index 7fe25c65e4..5cf65a1d83 100644 --- a/lib/cmyth/libcmyth/connection.c +++ b/lib/cmyth/libcmyth/connection.c @@ -655,6 +655,10 @@ cmyth_conn_connect_file(cmyth_proginfo_t prog, cmyth_conn_t control, goto shut; } count -= r; + if (count != 0) { + cmyth_dbg(CMYTH_DBG_ERROR, "%s: %d leftover bytes\n", + __FUNCTION__, count); + } free(announcement); ref_release(conn); ref_release(myth_host); |