ecore-drm: Don't unset logind variable when disconnecting a device

For a case where we have more than one device open, if we set the
'logind' variable to false, then the second device would never close
properly.

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
Chris Michael 2016-01-21 11:35:45 -05:00
parent 4ba349be4f
commit e0c36d27f5
1 changed files with 1 additions and 1 deletions

View File

@ -57,6 +57,7 @@ EAPI Eina_Bool
ecore_drm_launcher_connect(Ecore_Drm_Device *dev)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(dev, EINA_FALSE);
/* try to connect to logind */
if (!(logind = _ecore_drm_logind_connect(dev)))
{
@ -100,7 +101,6 @@ ecore_drm_launcher_disconnect(Ecore_Drm_Device *dev)
else
{
_ecore_drm_logind_disconnect(dev);
logind = EINA_FALSE;
}
}