Debug ping

This commit is contained in:
9seconds
2018-07-08 18:11:23 +03:00
parent a99c5b2442
commit 35b38fe55c
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -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
View File
@@ -44,8 +44,7 @@ type StreamReadWriter interface {
}
type StreamWriteCloser interface {
io.Closer
io.Writer
io.WriteCloser
Wrap
}