Please note that security bugs or issues should be reported to security@pgadmin.org.
Describe the bug
Heartbeat is getting logged, though no server is connected in pgAdmin
To Reproduce
Steps to reproduce the behavior:
1.Connect to server.
2.Check Network tab of dev tool to confirm heartbeat calls.(api call /log)
3.Now disconnect server.
4.Observer network tab.
5.'/log' heartbeat calls are on going.
Expected behavior
When no server is connected, heartbeat api call should be stopped.
Error message
Screenshots

Desktop (please complete the following information):
pgAdmin dev env.
Additional context
Issue is with below lines from browser.js
obj.Events.on(
'pgadmin:server:disconnect', stop_heartbeat.bind(obj)
);