mirror of
git://git.acid.vegas/IRCP.git
synced 2024-11-23 00:16:41 +00:00
Added a note about while loops..
This commit is contained in:
parent
3a1963b032
commit
ab7062537a
2
ircp.py
2
ircp.py
@ -233,7 +233,7 @@ class probe:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
async def listen(self):
|
async def listen(self):
|
||||||
while not self.reader.at_eof():
|
while not self.reader.at_eof(): # NOTE: should we use while True and break @ exceptions?
|
||||||
try:
|
try:
|
||||||
data = await asyncio.wait_for(self.reader.readuntil(b'\r\n'), throttle.ztimeout)
|
data = await asyncio.wait_for(self.reader.readuntil(b'\r\n'), throttle.ztimeout)
|
||||||
line = data.decode('utf-8').strip()
|
line = data.decode('utf-8').strip()
|
||||||
|
Loading…
Reference in New Issue
Block a user