Skip to content

Commit

Permalink
device: Fix the constructor logic
Browse files Browse the repository at this point in the history
Broken by the refactoring in 2790745.
  • Loading branch information
oleavr committed Nov 24, 2024
1 parent a8e01c2 commit b32408c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/frida.vala
Original file line number Diff line number Diff line change
Expand Up @@ -547,20 +547,24 @@ namespace Frida {

internal Device (DeviceManager? mgr, HostSessionProvider prov, string? id = null, string? name = null,
HostSessionOptions? options = null) {
Object (icon: provider.icon);
Object (icon: prov.icon);

_id = id;
_name = name;
provider = prov;
manager = mgr;
host_session_options = options;

assign_provider (prov);
}

construct {
_bus = new Bus (this);
}

private void assign_provider (HostSessionProvider prov) {
provider = prov;
provider.host_session_detached.connect (on_host_session_detached);
provider.agent_session_detached.connect (on_agent_session_detached);

_bus = new Bus (this);
}

public bool is_lost () {
Expand Down

0 comments on commit b32408c

Please sign in to comment.