Skip to content

Commit 8eb7e79

Browse files
committed
Fix error on missing close_function
1 parent cb19899 commit 8eb7e79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aswitch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ async def switchcheck(self):
107107
if state != self.switchstate:
108108
# State has changed: act on it now.
109109
self.switchstate = state
110-
if state == 0 and self.close_func:
110+
if state == 0 and self._close_func:
111111
launch(self._close_func, self._close_args)
112112
elif state == 1 and self._open_func:
113113
launch(self._open_func, self._open_args)

0 commit comments

Comments
 (0)