Skip to content

Commit

Permalink
Added close serial port to device_destruct in unix serial.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
kent-williams committed Apr 16, 2017
1 parent 8738b20 commit 6ed0e1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libsweep/src/unix/serial.cc
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ void device_destruct(device_s serial) {

error_s ignore = nullptr;
device_flush(serial, &ignore);
close(serial->fd);
(void)ignore; // nothing we can do here

delete serial;
Expand Down

0 comments on commit 6ed0e1d

Please sign in to comment.