connector/client: don't call disconnect on pipe error

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-12-09 16:17:06 -07:00
parent c8590ca402
commit ee0c2e4f68
-1
View File
@@ -446,7 +446,6 @@ func (t *TelegramClient) onConnectionStateChange(reason string) func() {
Error: "pipe-error",
Message: humanise.Error(err),
})
t.Disconnect()
} else {
t.sendBadCredentialsOrUnknownError(err)
}