Skip to content

Commit 4d004d9

Browse files
committed
Call shutdown() in destructor
1 parent a7cc335 commit 4d004d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

media-proxy/include/mesh/st2110rx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ template <typename FRAME, typename HANDLE, typename OPS> class ST2110Rx : public
2121
_ops = {0};
2222
_transfer_size = 0;
2323
}
24-
~ST2110Rx() {}
24+
~ST2110Rx() { shutdown(_ctx); }
2525

2626
protected:
2727
HANDLE _handle;

media-proxy/include/mesh/st2110tx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ template <typename FRAME, typename HANDLE, typename OPS> class ST2110Tx : public
2222
_ops = {0};
2323
_transfer_size = 0;
2424
};
25-
~ST2110Tx(){};
25+
~ST2110Tx() { shutdown(_ctx); };
2626

2727
protected:
2828
HANDLE _handle;

0 commit comments

Comments
 (0)