这是indexloc提供的服务,不要输入任何密码
Skip to content

Heartbeat is getting logged, though no server is connected in pgAdmin #6147

@yogeshmahajan-1903

Description

@yogeshmahajan-1903

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

Screenshot 2023-04-18 at 2 09 00 PM

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)
      );

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions