We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98f04fb commit 21bbfdeCopy full SHA for 21bbfde
lib/stomp.js
@@ -295,7 +295,7 @@ Stomp.prototype.is_a_message = function(this_frame) {
295
//
296
Stomp.prototype.should_run_message_callback = function(this_frame) {
297
var subscription = this._subscribed_to[this_frame.headers.destination];
298
- if (this_frame.headers.destination !== null && subscription !== null) {
+ if (this_frame.headers.destination !== null && subscription) {
299
if (subscription.enabled && subscription.callback !== null && typeof(subscription.callback) == 'function') {
300
subscription.callback(this_frame.body, this_frame.headers);
301
}
0 commit comments