Fixes https://github.com/transmission/transmission/issues/1140 Co-authored-by: Charles Kerr <ckerr@github.com>