Skip to content

Commit 38760b3

Browse files
committed
test
1 parent a2ed1fc commit 38760b3

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/wol.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,16 +201,14 @@ async function startProcessing(req, res) {
201201

202202
let wolResult = null
203203

204-
if (wolEnabled && hosts.length > 0) {
205-
wolResult = await trySendWakeupPackets(hosts, ENV.wolURL)
206-
}
207-
208-
logger.debug(JSON.stringify(wolResult))
209-
210204
return res.json({
211205
test: "HELLO",
212206
})
213207

208+
if (wolEnabled && hosts.length > 0) {
209+
wolResult = await trySendWakeupPackets(hosts, ENV.wolURL)
210+
}
211+
214212
if (wolResult) {
215213
err = wolResult.err
216214
if (ENV.exposeLogs) output += wolResult.output

0 commit comments

Comments
 (0)