mirror of https://github.com/nodejs/node.git
parent
ed111975a0
commit
fc6a9673c8
|
@ -223,11 +223,9 @@ Socket.prototype.address = function() {
|
|||
|
||||
|
||||
Socket.prototype.setBroadcast = function(arg) {
|
||||
if (this._handle.setBroadcast((arg) ? 1 : 0) == -1) {
|
||||
throw errnoException(errno, 'setBroadcast');
|
||||
if (this._handle.setBroadcast((arg) ? 1 : 0)) {
|
||||
throw errnoException(errno, 'setBroadcast');
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue