Skip to content

Commit

Permalink
refactor(patchbay): update global node on rebind
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed May 30, 2024
1 parent 399af8d commit bcafa10
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.21)
project(venmic LANGUAGES CXX VERSION 4.0.1)
project(venmic LANGUAGES CXX VERSION 4.0.2)

# --------------------------------------------------------------------------------------------------------
# Library options
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"private": false,
"license": "MPL-2.0",
"author": "Curve (https://github.com/Curve)",
"version": "4.0.1",
"version": "4.0.2",
"main": "./lib/index.js",
"types": "./lib/module.d.ts",
"scripts": {
Expand Down
8 changes: 5 additions & 3 deletions src/patchbay.impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,11 +577,13 @@ namespace vencord
}
else
{
const auto error = updated.error();
logger::get()->warn(R"([patchbay] (receive) failed to rebind {}: "{}")", id, error.message);
logger::get()->warn(R"([patchbay] (receive) failed to rebind {}: "{}")", id, updated.error().message);
}

return node{props};
auto rtn = node{props};
nodes[id].info.props = std::move(props);

return rtn;
};

logger::get()->trace("[patchbay] (receive): listing nodes ({{{}}})", fmt::join(req.props, ","));
Expand Down

0 comments on commit bcafa10

Please sign in to comment.