diff --git a/uws.js b/uws.js index e108dfd5..c16c3cde 100644 --- a/uws.js +++ b/uws.js @@ -1,5 +1,6 @@ /* - * Copyright 2018 Alex Hultman and contributors. + * Authored by Alex Hultman, 2018-2019. + * Intellectual property of third-party. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +19,7 @@ module.exports = (() => { try { const uWS = require(`./uws_${process.platform}_${process.versions.modules}.node`); /* We are not compatible with Node.js domain */ - process.nextTick = (f, ...args) => uWS.nextTick(f.apply(...args)); + process.nextTick = (f, ...args) => uWS.nextTick(() => f(...args)); return uWS; } catch (e) { throw new Error('This version of µWS is not compatible with your Node.js build.\n\n' + e.toString()); diff --git a/uws_linux_64.node b/uws_linux_64.node index edb14bda..efd8ad39 100755 Binary files a/uws_linux_64.node and b/uws_linux_64.node differ diff --git a/uws_linux_67.node b/uws_linux_67.node index 42973b98..7ea0ad33 100755 Binary files a/uws_linux_67.node and b/uws_linux_67.node differ