forked from premiere/premiere-libtorrent
assert that we always have an error code when a file fails to open
This commit is contained in:
parent
cedea0980f
commit
52f7bbc185
|
@ -199,6 +199,7 @@ namespace libtorrent
|
|||
if (m_fd == -1)
|
||||
{
|
||||
ec = error_code(errno, get_posix_category());
|
||||
TORRENT_ASSERT(ec);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue