summaryrefslogtreecommitdiffstats
path: root/mtp/MtpServer.cpp
diff options
context:
space:
mode:
authorbigbiff <bigbiff@teamw.in>2014-11-27 02:36:07 +0100
committerDees Troy <dees_troy@teamw.in>2014-12-04 17:32:27 +0100
commit7cb4c3322b3a282e63e77b0d2205fd2e51b8b932 (patch)
tree7ff7761604c2f6d82b444a66205126f8d81856e5 /mtp/MtpServer.cpp
parentReduce libs needed for decrypt and clean up old decypt files (diff)
downloadandroid_bootable_recovery-7cb4c3322b3a282e63e77b0d2205fd2e51b8b932.tar
android_bootable_recovery-7cb4c3322b3a282e63e77b0d2205fd2e51b8b932.tar.gz
android_bootable_recovery-7cb4c3322b3a282e63e77b0d2205fd2e51b8b932.tar.bz2
android_bootable_recovery-7cb4c3322b3a282e63e77b0d2205fd2e51b8b932.tar.lz
android_bootable_recovery-7cb4c3322b3a282e63e77b0d2205fd2e51b8b932.tar.xz
android_bootable_recovery-7cb4c3322b3a282e63e77b0d2205fd2e51b8b932.tar.zst
android_bootable_recovery-7cb4c3322b3a282e63e77b0d2205fd2e51b8b932.zip
Diffstat (limited to 'mtp/MtpServer.cpp')
-rwxr-xr-xmtp/MtpServer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/mtp/MtpServer.cpp b/mtp/MtpServer.cpp
index c044cad7f..66a641404 100755
--- a/mtp/MtpServer.cpp
+++ b/mtp/MtpServer.cpp
@@ -1078,8 +1078,10 @@ MtpResponseCode MtpServer::doSendObject() {
unlink(mSendObjectFilePath);
if (errno == ECANCELED)
result = MTP_RESPONSE_TRANSACTION_CANCELLED;
- else
+ else {
+ MTPD("errno: %d\n", errno);
result = MTP_RESPONSE_GENERAL_ERROR;
+ }
}
done:
@@ -1093,7 +1095,7 @@ done:
mSendObjectHandle = kInvalidObjectHandle;
MTPD("result: %d\n", result);
mSendObjectFormat = 0;
- return MTP_RESPONSE_OK;
+ return result;
}
static void deleteRecursive(const char* path) {