{"action":"closed","issue":{"url":"https://api.github.com/repos/ruby-amqp/bunny/issues/397","repository_url":"https://api.github.com/repos/ruby-amqp/bunny","labels_url":"https://api.github.com/repos/ruby-amqp/bunny/issues/397/labels{/name}","comments_url":"https://api.github.com/repos/ruby-amqp/bunny/issues/397/comments","events_url":"https://api.github.com/repos/ruby-amqp/bunny/issues/397/events","html_url":"https://github.com/ruby-amqp/bunny/issues/397","id":147256100,"number":397,"title":"Seemingly incorrect implementation of ReaderLoop#stopped?","user":{"login":"Zhomart","id":830536,"avatar_url":"https://avatars.githubusercontent.com/u/830536?v=3","gravatar_id":"","url":"https://api.github.com/users/Zhomart","html_url":"https://github.com/Zhomart","followers_url":"https://api.github.com/users/Zhomart/followers","following_url":"https://api.github.com/users/Zhomart/following{/other_user}","gists_url":"https://api.github.com/users/Zhomart/gists{/gist_id}","starred_url":"https://api.github.com/users/Zhomart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zhomart/subscriptions","organizations_url":"https://api.github.com/users/Zhomart/orgs","repos_url":"https://api.github.com/users/Zhomart/repos","events_url":"https://api.github.com/users/Zhomart/events{/privacy}","received_events_url":"https://api.github.com/users/Zhomart/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ruby-amqp/bunny/labels/bug","name":"bug","color":"e10c02"},{"url":"https://api.github.com/repos/ruby-amqp/bunny/labels/low-hanging%20fruit","name":"low-hanging fruit","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-10T19:37:30Z","updated_at":"2016-04-10T23:51:21Z","closed_at":"2016-04-10T23:51:21Z","body":"There is a piece of code that should check status in reader_loop.rb\r\n\r\n```\r\n    def stop\r\n      @mutex.synchronize { @stopping = true }\r\n    end\r\n\r\n    def stopped?\r\n      @mutex.synchronize { @stopped = true }\r\n    end\r\n\r\n    def stopping?\r\n      @mutex.synchronize { @stopping = true }\r\n    end\r\n```\r\n\r\nIs this intended that `ReaderLoop#stopped?` updates value of variable `@stopped`?"}}