Skip to content

Commit

Permalink
1841
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjoerd82 committed Feb 18, 2018
1 parent 5dde255 commit 979bf0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hu.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,12 +782,14 @@ def udisk_rem( device ):
ix_ss = Sources.getIndexSub(ix, 'device', partition)
if not ix_ss is None:

# check current index, to check if we're playing this to-be removed sub-source
arIxCurr = Sources.getIndexCurrent()

# remove sub-source
printer(' > Removing {0}...'.format(partition))
Sources.remSub(ix, ix_ss)

# stop playing, if removed source is current source
arIxCurr = Sources.getIndexCurrent()
print "DEBUG 1: {0}".format(arIxCurr)
if ix == arIxCurr[0] and ix_ss == arIxCurr[1]:
print "DEBUG 2"
Expand Down

0 comments on commit 979bf0c

Please sign in to comment.