prevent from doubly pushing files to device at same time