Skip to content

Commit 92609a0

Browse files
authored
Bugfix: stop didn't actually remove listeners
DeviceEventEmitter.removeListener requires the listener to be passed in as the second argument. Without this, it does nothing. DeviceEventEmitter.removeAllListeners will remove all listeners for a given event.
1 parent 3cd8f55 commit 92609a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919

2020
stop: function () {
2121
Server.stop();
22-
DeviceEventEmitter.removeListener('httpServerResponseReceived');
22+
DeviceEventEmitter.removeAllListeners('httpServerResponseReceived');
2323
},
2424

2525
respond: function (requestId, code, type, body) {

0 commit comments

Comments
 (0)