diff options
Diffstat (limited to 'OpenSim/Data/PGSQL/PGSQLManager.cs')
-rw-r--r-- | OpenSim/Data/PGSQL/PGSQLManager.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Data/PGSQL/PGSQLManager.cs b/OpenSim/Data/PGSQL/PGSQLManager.cs index 2084fe9..97f40b2 100644 --- a/OpenSim/Data/PGSQL/PGSQLManager.cs +++ b/OpenSim/Data/PGSQL/PGSQLManager.cs | |||
@@ -64,8 +64,13 @@ namespace OpenSim.Data.PGSQL | |||
64 | { | 64 | { |
65 | if (!Util.IsPlatformMono) | 65 | if (!Util.IsPlatformMono) |
66 | { | 66 | { |
67 | AppDomain currentDomain = AppDomain.CurrentDomain; | 67 | if (AppDomain.CurrentDomain.GetData("MonoSecurityPostgresAdded") == null) |
68 | currentDomain.AssemblyResolve += new ResolveEventHandler(ResolveEventHandlerMonoSec); | 68 | { |
69 | AppDomain.CurrentDomain.SetData("MonoSecurityPostgresAdded", "true"); | ||
70 | |||
71 | AppDomain currentDomain = AppDomain.CurrentDomain; | ||
72 | currentDomain.AssemblyResolve += new ResolveEventHandler(ResolveEventHandlerMonoSec); | ||
73 | } | ||
69 | } | 74 | } |
70 | } | 75 | } |
71 | 76 | ||