diff options
Diffstat (limited to '')
-rw-r--r-- | OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLGridData.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLGridData.cs b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLGridData.cs index 6ac8cc3..5006aaf 100644 --- a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLGridData.cs +++ b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLGridData.cs | |||
@@ -75,6 +75,7 @@ namespace OpenGrid.Framework.Data.MySQL | |||
75 | } | 75 | } |
76 | catch (Exception e) | 76 | catch (Exception e) |
77 | { | 77 | { |
78 | database.Reconnect(); | ||
78 | Console.WriteLine(e.ToString()); | 79 | Console.WriteLine(e.ToString()); |
79 | return null; | 80 | return null; |
80 | } | 81 | } |
@@ -106,6 +107,7 @@ namespace OpenGrid.Framework.Data.MySQL | |||
106 | } | 107 | } |
107 | catch (Exception e) | 108 | catch (Exception e) |
108 | { | 109 | { |
110 | database.Reconnect(); | ||
109 | Console.WriteLine(e.ToString()); | 111 | Console.WriteLine(e.ToString()); |
110 | return null; | 112 | return null; |
111 | } | 113 | } |
@@ -137,6 +139,7 @@ namespace OpenGrid.Framework.Data.MySQL | |||
137 | } | 139 | } |
138 | catch (Exception e) | 140 | catch (Exception e) |
139 | { | 141 | { |
142 | database.Reconnect(); | ||
140 | Console.WriteLine(e.ToString()); | 143 | Console.WriteLine(e.ToString()); |
141 | return null; | 144 | return null; |
142 | } | 145 | } |