summaryrefslogtreecommitdiff
path: root/src/SMAPI
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-02-16 22:33:33 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-02-16 22:33:33 -0500
commitd926133608b227add19f0aa711bf3efb5da5f0bd (patch)
tree797cb7ac6833e25eccb69a517a6ba22a08d33be6 /src/SMAPI
parent789b2f4e42f36aa55dfe1f3160259e540addbc2f (diff)
downloadSMAPI-d926133608b227add19f0aa711bf3efb5da5f0bd.tar.gz
SMAPI-d926133608b227add19f0aa711bf3efb5da5f0bd.tar.bz2
SMAPI-d926133608b227add19f0aa711bf3efb5da5f0bd.zip
fix deadlock in rare cases when injecting an asset (#441)
Diffstat (limited to 'src/SMAPI')
-rw-r--r--src/SMAPI/Framework/SContentManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/SContentManager.cs b/src/SMAPI/Framework/SContentManager.cs
index ff227fac..463fea0b 100644
--- a/src/SMAPI/Framework/SContentManager.cs
+++ b/src/SMAPI/Framework/SContentManager.cs
@@ -792,12 +792,12 @@ namespace StardewModdingAPI.Framework
{
try
{
- this.Lock.EnterReadLock();
+ this.Lock.EnterWriteLock();
return action();
}
finally
{
- this.Lock.ExitReadLock();
+ this.Lock.ExitWriteLock();
}
}
}