Sfoglia il codice sorgente

Small fix

tags/0.10
9seconds 7 anni fa
parent
commit
daa2d5b901

+ 1
- 1
wrappers/mtproto_intermediate.go Vedi File

@@ -76,7 +76,7 @@ func (m *MTProtoIntermediate) Write(p []byte) (int, error) {
76 76
 		"counter", m.writeCounter,
77 77
 	)
78 78
 
79
-	if m.opts.ReadHacks.SimpleAck {
79
+	if m.opts.WriteHacks.SimpleAck {
80 80
 		return m.conn.Write(p)
81 81
 	}
82 82
 

+ 1
- 1
wrappers/mtproto_intermediate_secure.go Vedi File

@@ -36,7 +36,7 @@ func (m *MTProtoIntermediateSecure) Write(p []byte) (int, error) {
36 36
 		"counter", m.writeCounter,
37 37
 	)
38 38
 
39
-	if m.opts.ReadHacks.SimpleAck {
39
+	if m.opts.WriteHacks.SimpleAck {
40 40
 		return m.conn.Write(p)
41 41
 	}
42 42
 

Loading…
Annulla
Salva