summaryrefslogtreecommitdiff
path: root/protocols/MRA/src/MraSendQueue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/MRA/src/MraSendQueue.cpp')
-rw-r--r--protocols/MRA/src/MraSendQueue.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/protocols/MRA/src/MraSendQueue.cpp b/protocols/MRA/src/MraSendQueue.cpp
index 80b9f20b1a..bb6467dfaa 100644
--- a/protocols/MRA/src/MraSendQueue.cpp
+++ b/protocols/MRA/src/MraSendQueue.cpp
@@ -28,13 +28,9 @@ DWORD MraSendQueueInitialize(DWORD dwSendTimeOutInterval, HANDLE *phSendQueueHan
return ERROR_INVALID_HANDLE;
MRA_SEND_QUEUE *pmrasqSendQueue = new MRA_SEND_QUEUE();
-
- DWORD dwRetErrorCode = ListMTInitialize(pmrasqSendQueue);
- if (dwRetErrorCode == NO_ERROR) {
- pmrasqSendQueue->dwSendTimeOutInterval = dwSendTimeOutInterval;
- *phSendQueueHandle = (HANDLE)pmrasqSendQueue;
- }
- return dwRetErrorCode;
+ pmrasqSendQueue->dwSendTimeOutInterval = dwSendTimeOutInterval;
+ *phSendQueueHandle = (HANDLE)pmrasqSendQueue;
+ return NO_ERROR;
}
void MraSendQueueDestroy(HANDLE hSendQueueHandle)
@@ -52,7 +48,6 @@ void MraSendQueueDestroy(HANDLE hSendQueueHandle)
}
}
- ListMTDestroy(pmrasqSendQueue);
delete pmrasqSendQueue;
}