handle ts segment write errors

This commit is contained in:
Muaz Ahmad 2023-09-23 16:37:49 +05:00
parent 9d7a57745f
commit c41b00ccfa

View file

@ -299,7 +299,9 @@ func (agent *SRTManager) handle_data_storage(packet *Packet) {
agent.storage.Relink(packet.timestamp) agent.storage.Relink(packet.timestamp)
} }
// write out all possible packets // write out all possible packets
agent.storage.Expunge(agent.output) if err := agent.storage.Expunge(agent.output); err != nil {
agent.state = 4
}
} }
// determines appropriate packets and responses depending on tunnel state // determines appropriate packets and responses depending on tunnel state