N4S4 / synology-api

A Python wrapper around Synology API
MIT License
384 stars 142 forks source link

Update auth.py #68

Closed nickchen-cpu closed 3 years ago

nickchen-cpu commented 3 years ago

Hello, this API is very good for use! I want to ask that the following condition is True if and only if self._session_expire == False, so I guess we don't need to reassign self._session_expire = False

        if not self._session_expire:
            if self._sid is not None:
                self._session_expire = False
                return 'User already logged'

Thanks!