Skip to content

Commit c4998e4

Browse files
committed
Fixed socket hang up on /player/stop
1 parent ac28e87 commit c4998e4

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [1.2.4] - 2019-03-25
10+
### Fixed
11+
- Socket hang up on `/player/stop` because of missing `send()`
12+
913
## [1.2.3] - 2019-03-25
1014
### Added
1115
- Changelog
@@ -38,7 +42,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3842
### Added
3943
- This is v1.0 which contains all of my current use cases so far.
4044

41-
[Unreleased]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.2.3...HEAD
45+
[Unreleased]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.2.4...HEAD
46+
[1.2.4]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.2.3...1.2.4
4247
[1.2.3]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.1.3...1.2.3
4348
[1.1.3]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.1.2...1.1.3
4449
[1.1.2]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.1.1...1.1.2

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"plugin",
1616
"playlist"
1717
],
18-
"version": "1.2.3",
18+
"version": "1.2.4",
1919
"scripts": {
2020
"start": "node ./bin/www",
2121
"dev-server": "DEBUG=* nodemon ./bin/www"

routes/player.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const router = express.Router()
1010
router.get('/stop', (req, res) => {
1111
Player.stop()
1212
.then(response => {
13-
res.status(response.status)
13+
res.status(response.status).send(response.statusText)
1414
})
1515
.catch(err => {
1616
logger.error(err)

0 commit comments

Comments
 (0)