Skip to content

Commit

Permalink
fix: CI compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ABeltramo committed Oct 7, 2024
1 parent caaf2c9 commit fea5448
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:

# First build the common dependencies: Rust-based libgstwaylanddisplay
build-gst-wayland:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Prepare environment
# ubuntu-latest breaks without libunwind-dev,
Expand Down
2 changes: 1 addition & 1 deletion src/moonlight-server/api/endpoints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ void UnixSocketServer::endpoint_RunnerStart(const wolf::api::HTTPRequest &req, s
state_->app_state->event_bus->fire_event(immer::box<events::StartRunner>(
events::StartRunner{.stop_stream_when_over = event.value().stop_stream_when_over,
.runner = runner,
.stream_session = immer::box<events::StreamSession>(*session)}));
.stream_session = std::make_shared<events::StreamSession>(*session)}));
} else {
logs::log(logs::warning, "[API] Invalid event: {} - {}", req.body, event.error()->what());
auto res = GenericErrorResponse{.error = event.error()->what()};
Expand Down
2 changes: 1 addition & 1 deletion src/moonlight-server/events/events.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ struct StreamSession;
struct StartRunner {
bool stop_stream_when_over = false;
std::shared_ptr<Runner> runner;
immer::box<StreamSession> stream_session;
std::shared_ptr<StreamSession> stream_session;
};

using EventBusHandlers = dp::handler_registration<immer::box<PlugDeviceEvent>,
Expand Down

0 comments on commit fea5448

Please sign in to comment.