Skip to content

Commit

Permalink
dsaudio: Logout() before trying to reconnect
Browse files Browse the repository at this point in the history
If the code needs to reconnect to the NAS, let's be sure we logout before that
to avoid letting too many active connections on the server side.
  • Loading branch information
Erwan Velu committed Mar 8, 2016
1 parent 470dc42 commit 9417e0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions multimedia/Synology/dsaudio/dsaudio.lua
Expand Up @@ -1020,6 +1020,9 @@ function stream_playlist(args)
end

function connect()
-- Before reconnecting, let's be sure the previous sessions are killed
logout()

sid=login()
if (sid == nil) then
fibaro:debug("Cannot find a valid SID in the response");
Expand Down

0 comments on commit 9417e0e

Please sign in to comment.