mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 11:24:02 +03:00
Fix a bug with crashing desktop telegram
This commit is contained in:
@@ -22,10 +22,9 @@ type wrapperProxy struct {
|
||||
}
|
||||
|
||||
func (w *wrapperProxy) Write(packet conntypes.Packet, acks *conntypes.ConnectionAcks) error {
|
||||
buf := acquireProxyBytesBuffer()
|
||||
defer releaseProxyBytesBuffer(buf)
|
||||
|
||||
buf := bytes.Buffer{}
|
||||
flags := w.flags
|
||||
|
||||
if acks.Quick {
|
||||
flags |= rpc.ProxyRequestFlagsQuickAck
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user