File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -98,21 +98,21 @@ async def run(self):
98
98
'Worker function which runs as a asyncio task for each plugin'
99
99
while True :
100
100
proc = await asyncio .create_subprocess_exec (* self .cmd )
101
- await proc .wait ()
101
+ return_code = await proc .wait ()
102
102
103
- while proc . returncode == SUSP_CODE :
103
+ while return_code == SUSP_CODE :
104
104
if self .is_inhibiting is not True :
105
105
self .is_inhibiting = True
106
106
print (f'{ self .name } is inhibiting '
107
- f'suspend (return={ proc . returncode } )' )
107
+ f'suspend (return={ return_code } )' )
108
108
109
109
proc = await asyncio .create_subprocess_exec (* self .icmd )
110
- await proc .wait ()
110
+ return_code = await proc .wait ()
111
111
112
112
if self .is_inhibiting is not False :
113
113
self .is_inhibiting = False
114
114
print (f'{ self .name } is not inhibiting '
115
- f'suspend (return={ proc . returncode } )' )
115
+ f'suspend (return={ return_code } )' )
116
116
117
117
await asyncio .sleep (self .period )
118
118
You can’t perform that action at this time.
0 commit comments