make sBackend volatile

This commit is contained in:
Adrian Ulrich 2017-03-16 20:47:13 +01:00
parent 0608627deb
commit ab74a3b5a5

View File

@ -71,7 +71,7 @@ public class MediaLibrary {
/**
* Our static backend instance
*/
private static MediaLibraryBackend sBackend;
private volatile static MediaLibraryBackend sBackend;
/**
* An instance to the created scanner thread during our own creation
*/