mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
* Fix forking while debugging Debugger address in use no longer happens * Fix cropper error
This commit is contained in:
committed by
Barış Soner Uşaklı
parent
bb6dcf3779
commit
1c35213934
@@ -1,9 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
var fork = require('child_process').fork;
|
||||
var path = require('path');
|
||||
|
||||
var debugParams = require('./meta/debugParams');
|
||||
var fork = require('./meta/debugFork');
|
||||
|
||||
exports.hash = function (rounds, password, callback) {
|
||||
forkChild({ type: 'hash', rounds: rounds, password: password }, callback);
|
||||
@@ -17,7 +16,7 @@ exports.compare = function (password, hash, callback) {
|
||||
};
|
||||
|
||||
function forkChild(message, callback) {
|
||||
var child = fork(path.join(__dirname, 'bcrypt'), [], debugParams());
|
||||
var child = fork(path.join(__dirname, 'bcrypt'));
|
||||
|
||||
child.on('message', function (msg) {
|
||||
if (msg.err) {
|
||||
|
||||
Reference in New Issue
Block a user