removed try catch on socket creation
This commit is contained in:
parent
015e552ffc
commit
bedacacf09
|
@ -33,17 +33,11 @@ var IpcProvider = function (path, net) {
|
||||||
|
|
||||||
net = net || require('net');
|
net = net || require('net');
|
||||||
|
|
||||||
|
this.connection = net.connect({path: this.path});
|
||||||
|
|
||||||
try {
|
this.connection.on('error', function(e){
|
||||||
this.connection = net.connect({path: this.path});
|
console.error('IPC Connection error', e);
|
||||||
} catch(error) {
|
});
|
||||||
throw errors.InvalidConnection(path);
|
|
||||||
}
|
|
||||||
|
|
||||||
// this.connection.on('error', function(e){
|
|
||||||
// throw errors.InvalidConnection(path);
|
|
||||||
// });
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// LISTEN FOR CONNECTION RESPONSES
|
// LISTEN FOR CONNECTION RESPONSES
|
||||||
|
|
Loading…
Reference in New Issue