Commit f6c53934 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MediaLibrary: Fix invalid assumption about removable being removable

parent 01e76baa
......@@ -1672,8 +1672,14 @@ bool MediaLibrary::DeviceListerCb::onDeviceMounted( const std::string& uuid,
{
try
{
deviceFs = fsFactory->createDevice( uuid );
if ( deviceFs == nullptr )
{
assert( !"The device must be available after a refresh" );
return false;
}
if ( Device::create( m_ml, uuid, fsFactory->scheme(),
true ) == nullptr )
deviceFs->isRemovable() ) == nullptr )
return false;
}
// And be conservative and assume another thread might have
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment