Access to MongoDB server after changing user's clientSource

MongoDB driver: 4.17.2 (NodeJS)
MongoDB server: 6.0.16

Client connected to MongoDB server using user , all requests success.
By mistake the server was configured to allow access for from some IPs only (clientSource) — the client requests rejected (it is OK).
After the invalid clientSource was removed, the client requests still are rejected until the client process restarted (i.e. until create new MongoClient instance).

Is this is correct behavior or it is known issue?