mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 22:24:02 +03:00
Small fix
This commit is contained in:
@@ -76,7 +76,7 @@ func (m *MTProtoIntermediate) Write(p []byte) (int, error) {
|
||||
"counter", m.writeCounter,
|
||||
)
|
||||
|
||||
if m.opts.ReadHacks.SimpleAck {
|
||||
if m.opts.WriteHacks.SimpleAck {
|
||||
return m.conn.Write(p)
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ func (m *MTProtoIntermediateSecure) Write(p []byte) (int, error) {
|
||||
"counter", m.writeCounter,
|
||||
)
|
||||
|
||||
if m.opts.ReadHacks.SimpleAck {
|
||||
if m.opts.WriteHacks.SimpleAck {
|
||||
return m.conn.Write(p)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user