virtual_sdcard: Check if other events need to run after each file read
Periodically check if other events need to run - this prevents the virtual_sdcard processing from starving other events. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
f2d232ef77
commit
82738955d2
|
@ -160,6 +160,7 @@ class VirtualSD:
|
||||||
lines[0] = partial_input + lines[0]
|
lines[0] = partial_input + lines[0]
|
||||||
partial_input = lines.pop()
|
partial_input = lines.pop()
|
||||||
lines.reverse()
|
lines.reverse()
|
||||||
|
self.reactor.pause(self.reactor.NOW)
|
||||||
continue
|
continue
|
||||||
# Dispatch command
|
# Dispatch command
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue