Minor change to documentation
This commit is contained in:
parent
07b8337a46
commit
844e65fa3a
|
@ -522,8 +522,8 @@ class FIFOKernel:
|
|||
self.selector.modify(resource, evt_type, self.current_task)
|
||||
self.current_task.last_io = (evt_type, resource)
|
||||
elif not self.current_task.last_io or self.current_task.last_io[1] != resource:
|
||||
# The task has either registered a new socket or is doing
|
||||
# I/O for the first time. In both cases, we register a new socket
|
||||
# The task has either registered a new resource or is doing
|
||||
# I/O for the first time
|
||||
self.current_task.last_io = evt_type, resource
|
||||
try:
|
||||
self.selector.register(resource, evt_type, [self.current_task])
|
||||
|
|
Reference in New Issue