{"action":"created","issue":{"url":"https://api.github.com/repos/LaxarJS/laxar/issues/151","labels_url":"https://api.github.com/repos/LaxarJS/laxar/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/LaxarJS/laxar/issues/151/comments","events_url":"https://api.github.com/repos/LaxarJS/laxar/issues/151/events","html_url":"https://github.com/LaxarJS/laxar/issues/151","id":58213781,"number":151,"title":"EventBus: cycle count not incremented if there are no subscribers","user":{"login":"x1B","id":327904,"avatar_url":"https://avatars.githubusercontent.com/u/327904?v=3","gravatar_id":"","url":"https://api.github.com/users/x1B","html_url":"https://github.com/x1B","followers_url":"https://api.github.com/users/x1B/followers","following_url":"https://api.github.com/users/x1B/following{/other_user}","gists_url":"https://api.github.com/users/x1B/gists{/gist_id}","starred_url":"https://api.github.com/users/x1B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x1B/subscriptions","organizations_url":"https://api.github.com/users/x1B/orgs","repos_url":"https://api.github.com/users/x1B/repos","events_url":"https://api.github.com/users/x1B/events{/privacy}","received_events_url":"https://api.github.com/users/x1B/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LaxarJS/laxar/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-19T14:21:17Z","updated_at":"2015-02-20T15:21:21Z","closed_at":"2015-02-20T15:21:21Z","body":"The cycle counter of the event bus is not incremented if no subscribers are notified during queue processing. The culprit seems to be an early return in `lib/event_bus/event_bus.js:477`:\r\n\r\n```js\r\n         if( subscribers.length === 0 ) {\r\n            return eventItem.publishedDeferred;\r\n         }\r\n```\r\n\r\nBefore returning, the current cycle needs to be reset."},"comment":{"url":"https://api.github.com/repos/LaxarJS/laxar/issues/comments/75254779","html_url":"https://github.com/LaxarJS/laxar/issues/151#issuecomment-75254779","issue_url":"https://api.github.com/repos/LaxarJS/laxar/issues/151","id":75254779,"user":{"login":"x1B","id":327904,"avatar_url":"https://avatars.githubusercontent.com/u/327904?v=3","gravatar_id":"","url":"https://api.github.com/users/x1B","html_url":"https://github.com/x1B","followers_url":"https://api.github.com/users/x1B/followers","following_url":"https://api.github.com/users/x1B/following{/other_user}","gists_url":"https://api.github.com/users/x1B/gists{/gist_id}","starred_url":"https://api.github.com/users/x1B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x1B/subscriptions","organizations_url":"https://api.github.com/users/x1B/orgs","repos_url":"https://api.github.com/users/x1B/repos","events_url":"https://api.github.com/users/x1B/events{/privacy}","received_events_url":"https://api.github.com/users/x1B/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T15:21:20Z","updated_at":"2015-02-20T15:21:20Z","body":"Fixed on `master` (`v1.0.0`), `master-0.x` (`v0.23.0`) and `release-0.22.x` (`v0.22.1`)."}}