diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-06 19:16:16 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-06 19:16:16 -0500 |
| commit | fba1ed80629410b5f16c8da38a1e408bee55f09b (patch) | |
| tree | 8d8210f61c7471868fb8267a1cbdee67426ecf32 | |
| parent | 4ef688e43232ac35e3b5f01a6326970b148567aa (diff) | |
update sqlite osx
4 files changed, 14 insertions, 21 deletions
diff --git a/MediaBrowser.Dlna/Ssdp/SsdpHandler.cs b/MediaBrowser.Dlna/Ssdp/SsdpHandler.cs index 87c559e06..bd3098ecd 100644 --- a/MediaBrowser.Dlna/Ssdp/SsdpHandler.cs +++ b/MediaBrowser.Dlna/Ssdp/SsdpHandler.cs @@ -1,6 +1,4 @@ -using System.Globalization; -using System.Threading.Tasks; -using MediaBrowser.Common.Configuration; +using MediaBrowser.Common.Configuration; using MediaBrowser.Common.Events; using MediaBrowser.Controller.Configuration; using MediaBrowser.Dlna.Server; @@ -8,11 +6,13 @@ using MediaBrowser.Model.Logging; using System; using System.Collections.Concurrent; using System.Collections.Generic; +using System.Globalization; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; +using System.Threading.Tasks; namespace MediaBrowser.Dlna.Ssdp { @@ -248,6 +248,10 @@ namespace MediaBrowser.Dlna.Ssdp catch (ObjectDisposedException) { } + catch (Exception ex) + { + _logger.Debug("Error in BeginReceiveFrom", ex); + } } private void ReceiveCallback(IAsyncResult result) diff --git a/MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs b/MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs index 14a877e78..d587e5af7 100644 --- a/MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs +++ b/MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs @@ -97,23 +97,23 @@ namespace MediaBrowser.Server.Implementations.Devices try { - return new DirectoryInfo(path) - .EnumerateFiles("*", SearchOption.AllDirectories) - .Where(i => string.Equals(i.Name, "device.json", StringComparison.OrdinalIgnoreCase)) + return Directory + .EnumerateFiles(path, "*", SearchOption.AllDirectories) + .Where(i => string.Equals(Path.GetFileName(i), "device.json", StringComparison.OrdinalIgnoreCase)) + .ToList() .Select(i => { try { - return _json.DeserializeFromFile<DeviceInfo>(i.FullName); + return _json.DeserializeFromFile<DeviceInfo>(i); } catch (Exception ex) { - _logger.ErrorException("Error reading {0}", ex, i.FullName); + _logger.ErrorException("Error reading {0}", ex, i); return null; } }) - .Where(i => i != null) - .ToList(); + .Where(i => i != null); } catch (IOException) { diff --git a/MediaBrowser.Server.Mono/MediaBrowser.Server.Mono.csproj b/MediaBrowser.Server.Mono/MediaBrowser.Server.Mono.csproj index de9d5b01e..92be88b77 100644 --- a/MediaBrowser.Server.Mono/MediaBrowser.Server.Mono.csproj +++ b/MediaBrowser.Server.Mono/MediaBrowser.Server.Mono.csproj @@ -167,10 +167,6 @@ <Link>sqlite3\linux\lib64\libsqlite3.so.0.8.6</Link> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> - <None Include="..\ThirdParty\SQLite3\mac\universal\3.8.2\libsqlite3.0.dylib"> - <Link>sqlite3\mac\libsqlite3.0.dylib</Link> - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> - </None> <None Include="app.config" /> <None Include="Imazen.WebP.dll.config"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> @@ -183,10 +179,4 @@ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> </ItemGroup> - <ItemGroup> - <Content Include="..\ThirdParty\SQLite3\windows\x86\3.8.2\sqlite3.dll"> - <Link>sqlite3.dll</Link> - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> - </Content> - </ItemGroup> </Project>
\ No newline at end of file diff --git a/MediaBrowser.Server.Mono/System.Data.SQLite.dll.config b/MediaBrowser.Server.Mono/System.Data.SQLite.dll.config index 98c548a6c..19b764482 100644 --- a/MediaBrowser.Server.Mono/System.Data.SQLite.dll.config +++ b/MediaBrowser.Server.Mono/System.Data.SQLite.dll.config @@ -1,6 +1,5 @@ <configuration> <dllmap dll="sqlite3" target="./sqlite3/linux/lib/libsqlite3.so.0.8.6" os="linux" wordsize="32"/> <dllmap dll="sqlite3" target="./sqlite3/linux/lib64/libsqlite3.so.0.8.6" os="linux" wordsize="64"/> - <dllmap dll="sqlite3" target="./sqlite3/mac/libsqlite3.0.dylib" os="osx"/> <dllmap dll="sqlite3" target="libsqlite3.so.0.8.6" os="linux" cpu="!x86,x86-64"/> </configuration>
\ No newline at end of file |
