From 23530e9bd20406553495a0628cefed99357dc327 Mon Sep 17 00:00:00 2001 From: eeichinger Date: Mon, 27 Oct 2008 18:07:59 +0000 Subject: [PATCH] fixed locking --- .../Spring.Aop/Aop/Target/HotSwappableTargetSource.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Spring/Spring.Aop/Aop/Target/HotSwappableTargetSource.cs b/src/Spring/Spring.Aop/Aop/Target/HotSwappableTargetSource.cs index 721de875..4df1d293 100644 --- a/src/Spring/Spring.Aop/Aop/Target/HotSwappableTargetSource.cs +++ b/src/Spring/Spring.Aop/Aop/Target/HotSwappableTargetSource.cs @@ -67,7 +67,13 @@ namespace Spring.Aop.Target /// public virtual Type TargetType { - get { return _target.GetType(); } + get + { + lock(this) + { + return _target.GetType(); + } + } } ///