[ 1801842 ] DB connection fix & improvements for concurrent threads

- Fixed potential infinity loop
This commit is contained in:
Heng Sin Low 2007-10-19 04:07:17 +00:00
parent 73814632f3
commit 877664d66d
1 changed files with 3 additions and 0 deletions

View File

@ -1466,6 +1466,9 @@ public final class DB
*/
public static boolean isRemoteObjects()
{
//avoid infinite loop
if (s_cc == null) return false;
return CConnection.get().isServerObjects()
&& CConnection.get().isAppsServerOK(false);
} // isRemoteObjects