PadMessageHandler: Stop the USER_CHANGES timer on exception

This commit is contained in:
Richard Hansen 2021-11-16 03:46:27 -05:00
parent 97e382e5d2
commit a052580bd1

View file

@ -676,9 +676,9 @@ const handleUserChanges = async (socket, message) => {
stats.meter('failedChangesets').mark(); stats.meter('failedChangesets').mark();
messageLogger.warn(`Failed to apply USER_CHANGES from author ${thisSession.author} ` + messageLogger.warn(`Failed to apply USER_CHANGES from author ${thisSession.author} ` +
`(socket ${socket.id}) on pad ${thisSession.padId}: ${err.stack || err}`); `(socket ${socket.id}) on pad ${thisSession.padId}: ${err.stack || err}`);
} finally {
stopWatch.end();
} }
stopWatch.end();
}; };
exports.updatePadClients = async (pad) => { exports.updatePadClients = async (pad) => {