fix condition in saveWaitForEvent()

add newline escape sequence.

close #106
This commit is contained in:
Qingping Hou
2012-04-13 15:19:42 +08:00
parent e0327ed4e8
commit cafa86a5bd
+1 -1
View File
@@ -262,7 +262,7 @@ function input.saveWaitForEvent(timeout)
local ok, ev = pcall(input.waitForEvent, timeout)
if not ok then
print("got error waiting for events:", ev)
if ev == "Waiting for input failed: 4" then
if ev == "Waiting for input failed: 4\n" then
-- EINTR, we got interrupted. Try and restart
retry = true
else