diff --git a/NetfluxWebsocketSrv.js b/NetfluxWebsocketSrv.js index e9fffd2ed..a5e75c6cf 100644 --- a/NetfluxWebsocketSrv.js +++ b/NetfluxWebsocketSrv.js @@ -34,7 +34,9 @@ const sendChannelMessage = function (ctx, channel, msgStruct) { }); if (USE_HISTORY_KEEPER && msgStruct[2] === 'MSG') { ctx.store.message(channel.id, JSON.stringify(msgStruct), function (err) { - if (err) { + if (err && typeof(err) !== 'function') { + // ignore functions because older datastores + // might pass waitFors into the callback console.log("Error writing message: " + err); } });