# HG changeset patch # User Ivo Smits # Date 1411947387 -7200 # Node ID 04c56f31db37ab6fca861d56dc3dbbd4aa8af194 # Parent 2b5e7bb9b979517c43df8abd481599a1ac304e21# Parent be17dd3f692794b16706e9da40ade826a7c23bb0 Merge diff -r 2b5e7bb9b979 -r 04c56f31db37 Net/HTTP.cs --- a/Net/HTTP.cs Wed Sep 03 21:44:26 2014 +0200 +++ b/Net/HTTP.cs Mon Sep 29 01:36:27 2014 +0200 @@ -732,8 +732,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 2b5e7bb9b979 -r 04c56f31db37 USBLib/Communication/LibUsb1/libusb1.cs --- a/USBLib/Communication/LibUsb1/libusb1.cs Wed Sep 03 21:44:26 2014 +0200 +++ b/USBLib/Communication/LibUsb1/libusb1.cs Mon Sep 29 01:36:27 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 {