Add RT-Thread Root folder detection.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2495 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com
2012-12-18 10:31:13 +00:00
parent be73747fc4
commit 1fa210e6e3
2 changed files with 17 additions and 13 deletions

View File

@@ -139,7 +139,8 @@ class Win32Spawn(object):
try:
finished = 0
hr, data = win32file.ReadFile(handle, bytesToRead, None)
self.queue.put_nowait(data)
if data:
self.queue.put_nowait(data)
except win32api.error:
finished = 1