Fixed deprecated call.

gtorrent/gtorrent-core#74