summaryrefslogtreecommitdiff
path: root/kvmd/apps
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-03-03 23:48:53 +0300
committerDevaev Maxim <[email protected]>2020-03-03 23:48:53 +0300
commit552bb93212ef2a890b1493b2d9be022d3ece802b (patch)
tree7ce3dd397b5fa6a78fac54f5d4c9d3bf71366008 /kvmd/apps
parent3b16242cfa4b656ba7d396a600b452184aac6c76 (diff)
atomic fixes, removed tasked and muted
Diffstat (limited to 'kvmd/apps')
-rw-r--r--kvmd/apps/kvmd/wol.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/kvmd/apps/kvmd/wol.py b/kvmd/apps/kvmd/wol.py
index ea62aea1..f388f136 100644
--- a/kvmd/apps/kvmd/wol.py
+++ b/kvmd/apps/kvmd/wol.py
@@ -64,13 +64,10 @@ class WakeOnLan:
async def wakeup(self) -> None:
if not self.__magic:
raise WolDisabledError()
- await self.__inner_wakeup()
- @aiotools.tasked
- @aiotools.muted("Can't perform Wake-on-LAN or operation was not completed")
- async def __inner_wakeup(self) -> None:
logger = get_logger(0)
logger.info("Waking up %s (%s:%s) using Wake-on-LAN ...", self.__mac, self.__ip, self.__port)
+
sock: Optional[socket.socket] = None
try:
# TODO: IPv6 support: http://lists.cluenet.de/pipermail/ipv6-ops/2014-September/010139.html