diff -r d6dafc5d983f -r 1627c337e51e javaextensions/centralrepository/javasrc/com/nokia/mj/impl/cenrep/CentralRepositoryImpl.java --- a/javaextensions/centralrepository/javasrc/com/nokia/mj/impl/cenrep/CentralRepositoryImpl.java Fri Oct 15 12:29:39 2010 +0300 +++ b/javaextensions/centralrepository/javasrc/com/nokia/mj/impl/cenrep/CentralRepositoryImpl.java Fri Oct 29 11:49:32 2010 +0300 @@ -114,7 +114,7 @@ synchronized (this) { - if (iState != CLOSED) + if (iState != CLOSED && iState == OPEN) { iState = CLOSED; _close(iFunctionSourceHandle, iCenrepHandle); @@ -329,6 +329,7 @@ long key, int value); + /** * Checks if MIDlet is permited to access the central repository.