ack handling
parent
3891bde8e0
commit
9f19a3e71f
|
@ -132,15 +132,15 @@ func getMessageFromReceivedQueueByCmdID(receivedQueueMessages []*ReceivedQueueMe
|
||||||
}
|
}
|
||||||
|
|
||||||
func (webClient *WebClient) RemoveMessageFromVoiceSendQueueByCmdID(cmdID int) {
|
func (webClient *WebClient) RemoveMessageFromVoiceSendQueueByCmdID(cmdID int) {
|
||||||
removeMessageFromSendQueueByCmdID(webClient.SendVoiceQueueMessages, &webClient.sendVoiceQueueMessagesMu, cmdID)
|
webClient.SendVoiceQueueMessages = removeMessageFromSendQueueByCmdID(webClient.SendVoiceQueueMessages, &webClient.sendVoiceQueueMessagesMu, cmdID)
|
||||||
logger.WebVoice.Warnln("RemoveMessageFromVoiceSendQueueByCmdID list", webClient.SendVoiceQueueMessages)
|
logger.WebVoice.Warnln("RemoveMessageFromVoiceSendQueueByCmdID list", webClient.SendVoiceQueueMessages)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (webClient *WebClient) RemoveMessageFromMobileSendQueueByCmdID(cmdID int) {
|
func (webClient *WebClient) RemoveMessageFromMobileSendQueueByCmdID(cmdID int) {
|
||||||
removeMessageFromSendQueueByCmdID(webClient.SendMobileQueueMessages, &webClient.sendMobileQueueMessagesMu, cmdID)
|
webClient.SendMobileQueueMessages = removeMessageFromSendQueueByCmdID(webClient.SendMobileQueueMessages, &webClient.sendMobileQueueMessagesMu, cmdID)
|
||||||
}
|
}
|
||||||
|
|
||||||
func removeMessageFromSendQueueByCmdID(queueMessages []*SendQueueMessage, mutex *sync.Mutex, cmdID int) {
|
func removeMessageFromSendQueueByCmdID(queueMessages []*SendQueueMessage, mutex *sync.Mutex, cmdID int) []*SendQueueMessage {
|
||||||
mutex.Lock()
|
mutex.Lock()
|
||||||
defer mutex.Unlock()
|
defer mutex.Unlock()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue