# HG changeset patch # User Ivo Smits # Date 1408282523 -7200 # Node ID be17dd3f692794b16706e9da40ade826a7c23bb0 # Parent c9bc014bdbe88db8e14bf1d0266b2949fb8ec088 Small fixes in HTTP server and libusb1 backend diff -r c9bc014bdbe8 -r be17dd3f6927 Net/HTTP.cs --- a/Net/HTTP.cs Tue Jul 08 16:52:10 2014 +0200 +++ b/Net/HTTP.cs Sun Aug 17 15:35:23 2014 +0200 @@ -721,8 +721,14 @@ } private void SendErrorAndClose(int code) { - SendErrorResponse(code); - Close(); + try { + SendErrorResponse(code); + } catch (IOException) { + } catch (SocketException) { + } catch (ObjectDisposedException) { + } finally { + Close(); + } } private void Close() { if (State == HTTPConnectionState.Closed) return; diff -r c9bc014bdbe8 -r be17dd3f6927 USBLib/Communication/LibUsb1/libusb1.cs --- a/USBLib/Communication/LibUsb1/libusb1.cs Tue Jul 08 16:52:10 2014 +0200 +++ b/USBLib/Communication/LibUsb1/libusb1.cs Sun Aug 17 15:35:23 2014 +0200 @@ -29,7 +29,7 @@ } unsafe static class libusb1 { const CallingConvention LIBUSB1_CC = CallingConvention.Winapi; - const String LIBUSB1_DLL = "libusb-1.0.dll"; + const String LIBUSB1_DLL = "libusb-1.0"; [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct libusb_device_descriptor {