diff options
Diffstat (limited to 'Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs')
| -rw-r--r-- | Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs b/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs index 12669d05d..620d3bae9 100644 --- a/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs +++ b/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs @@ -144,24 +144,17 @@ namespace IsoMounter return Task.FromResult(false); } - public async Task<IIsoMount> Mount(string isoPath, CancellationToken cancellationToken) + public Task<IIsoMount> Mount(string isoPath, CancellationToken cancellationToken) { - - LinuxMount mountedISO; - - if (MountISO(isoPath, out mountedISO)) { - - return mountedISO; - - }else{ - + if (MountISO(isoPath, out LinuxMount mountedISO)) { + return Task.FromResult<IIsoMount>(mountedISO); + } + else { throw new IOException(String.Format( "An error occurred trying to mount image [$0].", isoPath )); - } - } #endregion |
