Skip to content

Commit bd234f5

Browse files
authored
Merge pull request #12 from harryeakins/patch-1
Bugfix: stop didn't actually remove listeners
2 parents 1c355c5 + 92609a0 commit bd234f5

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)