diff options
Diffstat (limited to 'OpenSim/Data/PGSQL/PGSQLFramework.cs')
-rw-r--r-- | OpenSim/Data/PGSQL/PGSQLFramework.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Data/PGSQL/PGSQLFramework.cs b/OpenSim/Data/PGSQL/PGSQLFramework.cs index 48f8dd3..1028e4e 100644 --- a/OpenSim/Data/PGSQL/PGSQLFramework.cs +++ b/OpenSim/Data/PGSQL/PGSQLFramework.cs | |||
@@ -58,8 +58,14 @@ namespace OpenSim.Data.PGSQL | |||
58 | { | 58 | { |
59 | if (!Util.IsPlatformMono) | 59 | if (!Util.IsPlatformMono) |
60 | { | 60 | { |
61 | AppDomain currentDomain = AppDomain.CurrentDomain; | 61 | |
62 | currentDomain.AssemblyResolve += new ResolveEventHandler(ResolveEventHandlerMonoSec); | 62 | if (AppDomain.CurrentDomain.GetData("MonoSecurityPostgresAdded") == null) |
63 | { | ||
64 | AppDomain.CurrentDomain.SetData("MonoSecurityPostgresAdded", "true"); | ||
65 | |||
66 | AppDomain currentDomain = AppDomain.CurrentDomain; | ||
67 | currentDomain.AssemblyResolve += new ResolveEventHandler(ResolveEventHandlerMonoSec); | ||
68 | } | ||
63 | } | 69 | } |
64 | } | 70 | } |
65 | 71 | ||