Skip to content

Commit

Permalink
Fixed socket hang up on /player/stop
Browse files Browse the repository at this point in the history
  • Loading branch information
moecre committed Mar 25, 2019
1 parent ac28e87 commit c4998e4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.2.4] - 2019-03-25
### Fixed
- Socket hang up on `/player/stop` because of missing `send()`

## [1.2.3] - 2019-03-25
### Added
- Changelog
Expand Down Expand Up @@ -38,7 +42,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- This is v1.0 which contains all of my current use cases so far.

[Unreleased]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.2.3...HEAD
[Unreleased]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.2.4...HEAD
[1.2.4]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.2.3...1.2.4
[1.2.3]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.1.3...1.2.3
[1.1.3]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.1.2...1.1.3
[1.1.2]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.1.1...1.1.2
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"plugin",
"playlist"
],
"version": "1.2.3",
"version": "1.2.4",
"scripts": {
"start": "node ./bin/www",
"dev-server": "DEBUG=* nodemon ./bin/www"
Expand Down
2 changes: 1 addition & 1 deletion routes/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const router = express.Router()
router.get('/stop', (req, res) => {
Player.stop()
.then(response => {
res.status(response.status)
res.status(response.status).send(response.statusText)
})
.catch(err => {
logger.error(err)
Expand Down

0 comments on commit c4998e4

Please sign in to comment.