wake_on_lan
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ "name" : "wake_on_lan" | ||
, "version" : "0.0.3" | ||
, "version" : "0.0.4" | ||
, "description" : "generate and send Wake-on-LAN magic packets" | ||
@@ -4,0 +4,0 @@ , "main": "./wake_on_lan.js" |
@@ -54,3 +54,7 @@ var dgram = require('dgram') | ||
if (error || i === num_packets) { | ||
socket.close(); | ||
try { | ||
socket.close(); | ||
} catch (ex) { | ||
error = error || ex; | ||
} | ||
if (timer_id) { | ||
@@ -64,2 +68,5 @@ clearTimeout(timer_id); | ||
} | ||
socket.on('error', post_write); | ||
function sendWoL() { | ||
@@ -76,5 +83,5 @@ i += 1; | ||
socket.setBroadcast(true) | ||
}) | ||
}); | ||
sendWoL(); | ||
} | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6367
73