xbmc/xbmc — comment on commit c7882c7411fcce6b30d0bc5a4445a1d8c209e45a
File:  line 0
By elupus:

So i decided to revert it mostly. I changed it to drain the device before flushing. Should resolve most problems.