diff options
Diffstat (limited to 'Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs')
| -rw-r--r-- | Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs b/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs index 12669d05d..4716c64b2 100644 --- a/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs +++ b/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs @@ -144,24 +144,21 @@ 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 mountedISO)) + { + return Task.FromResult<IIsoMount>(mountedISO); + } + else + { throw new IOException(String.Format( "An error occurred trying to mount image [$0].", isoPath )); - } - } #endregion |
