mirror of
https://github.com/ZuneDev/ZuneShell.dll.git
synced 2026-07-27 13:11:51 -07:00
Converted to lock blocks
This commit is contained in:
@@ -19,9 +19,8 @@ namespace Microsoft.Zune.Util
|
||||
{
|
||||
if (sm_radioStationManager == null)
|
||||
{
|
||||
try
|
||||
{
|
||||
Monitor.Enter(sm_lock);
|
||||
lock (sm_lock)
|
||||
{
|
||||
if (sm_radioStationManager == null)
|
||||
{
|
||||
RadioStationManager radioStationManager = new RadioStationManager();
|
||||
@@ -29,10 +28,6 @@ namespace Microsoft.Zune.Util
|
||||
sm_radioStationManager = radioStationManager;
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
Monitor.Exit(sm_lock);
|
||||
}
|
||||
}
|
||||
return sm_radioStationManager;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user