1
0
mirror of https://github.com/stryan/mumble-discord-bridge.git synced 2024-12-27 17:05:40 -05:00

from to discord buffer warning

This commit is contained in:
Tyler Stiene 2021-11-20 16:58:39 -05:00
parent c94362581a
commit fd4884cdb6

View File

@ -62,7 +62,6 @@ func (m *MumbleDuplex) fromMumbleMixer(ctx context.Context, cancel context.Cance
m.mumbleSleepTick.Start(10 * time.Millisecond)
sendAudio := false
bufferWarning := false
droppingPackets := false
droppingPacketCount := 0
@ -117,18 +116,6 @@ func (m *MumbleDuplex) fromMumbleMixer(ctx context.Context, cancel context.Cance
}
}
if len(toDiscord) > 20 {
if !bufferWarning {
log.Println("Warning: toDiscord buffer size")
bufferWarning = true
}
} else {
if bufferWarning {
log.Println("Resolved: toDiscord buffer size")
bufferWarning = false
}
}
promToDiscordBufferSize.Set(float64(len(toDiscord)))
select {
case toDiscord <- outBuf: