drm: permission denied is also temporary
This commit is contained in:
parent
25f2610ea6
commit
20b373470f
|
@ -78,6 +78,7 @@ impl Into<SwapBuffersError> for Error {
|
||||||
x @ Error::DeviceInactive => SwapBuffersError::TemporaryFailure(Box::new(x)),
|
x @ Error::DeviceInactive => SwapBuffersError::TemporaryFailure(Box::new(x)),
|
||||||
Error::Access { errmsg, dev, source, .. }
|
Error::Access { errmsg, dev, source, .. }
|
||||||
if match source.get_ref() {
|
if match source.get_ref() {
|
||||||
|
drm::SystemError::PermissionDenied => true,
|
||||||
drm::SystemError::Unknown {
|
drm::SystemError::Unknown {
|
||||||
errno: nix::errno::Errno::EBUSY,
|
errno: nix::errno::Errno::EBUSY,
|
||||||
} => true,
|
} => true,
|
||||||
|
|
Loading…
Reference in New Issue