diff --git a/src/calibre/devices/mtp/windows/content_enumeration.cpp b/src/calibre/devices/mtp/windows/content_enumeration.cpp index 56150bff85..f9026c35f8 100644 --- a/src/calibre/devices/mtp/windows/content_enumeration.cpp +++ b/src/calibre/devices/mtp/windows/content_enumeration.cpp @@ -209,9 +209,7 @@ static PyObject* bulk_get_filesystem(IPortableDevice *device, IPortableDevicePro callback->thread_state = PyEval_SaveThread(); while (TRUE) { - Py_BEGIN_ALLOW_THREADS; wait_result = MsgWaitForMultipleObjects(1, &(callback->complete), FALSE, 60000, QS_ALLEVENTS); - Py_END_ALLOW_THREADS; if (wait_result == WAIT_OBJECT_0) { break; // Event was signalled, bulk operation complete } else if (wait_result == WAIT_OBJECT_0 + 1) { // Messages need to be dispatched diff --git a/src/calibre/devices/mtp/windows/remote.py b/src/calibre/devices/mtp/windows/remote.py index 13e15764b2..a6502b991b 100644 --- a/src/calibre/devices/mtp/windows/remote.py +++ b/src/calibre/devices/mtp/windows/remote.py @@ -70,6 +70,7 @@ def main(): print ('Connected to:', dev.get_gui_name()) print ('Total space', dev.total_space()) print ('Free space', dev.free_space()) + pprint.pprint(dev.dev.get_filesystem(dev._main_id)) finally: dev.shutdown()