ack handling
parent
254fd6c74a
commit
10b3c83ed5
|
@ -33,16 +33,18 @@ func AckHandler() {
|
||||||
for _ = range ticker.C {
|
for _ = range ticker.C {
|
||||||
currentTime := time.Now()
|
currentTime := time.Now()
|
||||||
|
|
||||||
logger.Web.Debugln("ack handler running")
|
|
||||||
|
|
||||||
for _, webClient := range cache.WebClients {
|
for _, webClient := range cache.WebClients {
|
||||||
logger.Web.Debugln("ackHandler voice:", webClient.SendVoiceQueueMessages)
|
if len(webClient.SendVoiceQueueMessages) > 0 {
|
||||||
|
logger.Web.Debugln("ackHandler voice:", webClient.SendVoiceQueueMessages)
|
||||||
|
}
|
||||||
|
|
||||||
for _, msg := range webClient.SendVoiceQueueMessages {
|
for _, msg := range webClient.SendVoiceQueueMessages {
|
||||||
handleSendQueueMessage(currentTime, webClient, true, nil, msg)
|
handleSendQueueMessage(currentTime, webClient, true, nil, msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.Web.Debugln("ackHandler mobile:", webClient.SendMobileQueueMessages)
|
if len(webClient.SendMobileQueueMessages) > 0 {
|
||||||
|
logger.Web.Debugln("ackHandler mobile:", webClient.SendMobileQueueMessages)
|
||||||
|
}
|
||||||
|
|
||||||
for _, msg := range webClient.SendMobileQueueMessages {
|
for _, msg := range webClient.SendMobileQueueMessages {
|
||||||
handleSendQueueMessage(currentTime, webClient, false, nil, msg)
|
handleSendQueueMessage(currentTime, webClient, false, nil, msg)
|
||||||
|
@ -50,7 +52,9 @@ func AckHandler() {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, mcClient := range cache.MinecraftClients {
|
for _, mcClient := range cache.MinecraftClients {
|
||||||
logger.Web.Debugln("ackHandler mcClient:", mcClient.Name, "msgs:", mcClient.SendQueueMessages)
|
if len(mcClient.SendQueueMessages) > 0 {
|
||||||
|
logger.Web.Debugln("ackHandler mcClient:", mcClient.Name, "msgs:", mcClient.SendQueueMessages)
|
||||||
|
}
|
||||||
|
|
||||||
for _, msg := range mcClient.SendQueueMessages {
|
for _, msg := range mcClient.SendQueueMessages {
|
||||||
handleSendQueueMessage(currentTime, nil, false, mcClient, msg)
|
handleSendQueueMessage(currentTime, nil, false, mcClient, msg)
|
||||||
|
|
Loading…
Reference in New Issue