fix batget infinie spin

SVN revision: 34273
This commit is contained in:
Carsten Haitzler 2008-04-15 15:20:59 +00:00
parent 558ca60a66
commit 088fceedde
1 changed files with 3 additions and 2 deletions

View File

@ -462,8 +462,9 @@ linux_sys_class_power_supply_cb_event_fd_active(void *data, Ecore_Fd_Handler *fd
(errno == EBADF) ||
(errno == EPIPE) ||
(errno == EINVAL) ||
(errno == ENOSPC));
if (num == 0) break;
(errno == ENOSPC) ||
(errno == ENODEV));
if (num <= 0) break;
}
}
if (lost)