abap-local-client 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/sso-sap-client.mjs +1 -0
package/package.json
CHANGED
package/sso-sap-client.mjs
CHANGED
|
@@ -658,6 +658,7 @@ class WebSocketClient {
|
|
|
658
658
|
if (!sys) { this.sendResponse(requestId, false, { error: `Unknown system: ${sid}` }); return; }
|
|
659
659
|
this.currentSystemId = sid;
|
|
660
660
|
this.lockManager.clearAll();
|
|
661
|
+
sessions.delete(sid); // force re-create session with fresh config on every switch
|
|
661
662
|
const ok = await this.initSapClient();
|
|
662
663
|
if (!ok) { this.sendResponse(requestId, false, { error: `Failed to connect to ${sid}. Check RFC/SNC config and logs.` }); return; }
|
|
663
664
|
this.sendResponse(requestId, true, [{ success: true, data: { system: sid, authMode: sys.authMode } }]);
|