From a0e97458c62ae970b0d1718e785bbd53c81ecbc6 Mon Sep 17 00:00:00 2001 From: Deniz <100031702+diezeldev@users.noreply.github.com> Date: Tue, 8 Mar 2022 09:29:40 +0100 Subject: [PATCH] Add a warning to make people aware of what they should do about the 'Restart Required' message. (#1329) --- src/Socket/socket.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Socket/socket.ts b/src/Socket/socket.ts index 5c1d080..1d3df07 100644 --- a/src/Socket/socket.ts +++ b/src/Socket/socket.ts @@ -480,6 +480,9 @@ export const makeSocket = ({ ev.emit('connection.update', { isNewLogin: true, qr: undefined }) end(new Boom('Restart Required', { statusCode: DisconnectReason.restartRequired })) + + logger.warn('If your process stalls here, make sure to implement the reconnect logic as shown in ' + + 'https://github.com/adiwajshing/Baileys/blob/master/Example/example.ts#:~:text=reconnect') } catch(error) { logger.info({ trace: error.stack }, 'error in pairing') end(error)