Update Rhymen/go-whatsapp vendor and whatsapp version (#1078)

This commit is contained in:
Wim
2020-04-09 22:30:08 +02:00
committed by GitHub
parent 11fc4c286f
commit 8950575bfb
11 changed files with 1160 additions and 544 deletions

View File

@@ -15,7 +15,10 @@ import (
)
func (wac *Conn) readPump() {
defer wac.wg.Done()
defer func() {
wac.wg.Done()
_, _ = wac.Disconnect()
}()
var readErr error
var msgType int
@@ -31,7 +34,6 @@ func (wac *Conn) readPump() {
case <-readerFound:
if readErr != nil {
wac.handle(&ErrConnectionFailed{Err: readErr})
_, _ = wac.Disconnect()
return
}
msg, err := ioutil.ReadAll(reader)