Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions python/camera_interface_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,18 @@ namespace {
this->interface->configure_frame_outputs();
}

/// Release both Archon sockets; the controller has few and reclaims
/// them only once it notices a peer has gone
~CameraSession() {
try {
std::string retstring;
this->interface->disconnect_controller("", retstring);
}
// A destructor must not throw, and a failed close is not worth
// taking the process down for
catch (...) {}
}

CameraSession(const CameraSession&) = delete;
CameraSession& operator=(const CameraSession&) = delete;

Expand Down
Loading