Skip to content

Commit d7f8b09

Browse files
authored
Merge pull request peterhinch#14 from stlehmann/master
Fix error on missing close_function
2 parents cb19899 + 8eb7e79 commit d7f8b09

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)