mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 17:04:02 +03:00
Debug ping
This commit is contained in:
@@ -98,7 +98,7 @@ func (m *MTProtoAbridged) Write(p []byte) (int, error) {
|
||||
"counter", m.writeCounter,
|
||||
)
|
||||
|
||||
if len(p)%4 == 0 {
|
||||
if len(p)%4 != 0 {
|
||||
return 0, errors.Errorf("Incorrect packet length %d", len(p))
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -44,8 +44,7 @@ type StreamReadWriter interface {
|
||||
}
|
||||
|
||||
type StreamWriteCloser interface {
|
||||
io.Closer
|
||||
io.Writer
|
||||
io.WriteCloser
|
||||
Wrap
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user