{"action":"closed","issue":{"url":"https://api.github.com/repos/cloudwu/skynet/issues/916","repository_url":"https://api.github.com/repos/cloudwu/skynet","labels_url":"https://api.github.com/repos/cloudwu/skynet/issues/916/labels{/name}","comments_url":"https://api.github.com/repos/cloudwu/skynet/issues/916/comments","events_url":"https://api.github.com/repos/cloudwu/skynet/issues/916/events","html_url":"https://github.com/cloudwu/skynet/issues/916","id":378128466,"node_id":"MDU6SXNzdWUzNzgxMjg0NjY=","number":916,"title":"skynet.timeout","user":{"login":"kevin8990","id":7582861,"node_id":"MDQ6VXNlcjc1ODI4NjE=","avatar_url":"https://avatars3.githubusercontent.com/u/7582861?v=4","gravatar_id":"","url":"https://api.github.com/users/kevin8990","html_url":"https://github.com/kevin8990","followers_url":"https://api.github.com/users/kevin8990/followers","following_url":"https://api.github.com/users/kevin8990/following{/other_user}","gists_url":"https://api.github.com/users/kevin8990/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin8990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin8990/subscriptions","organizations_url":"https://api.github.com/users/kevin8990/orgs","repos_url":"https://api.github.com/users/kevin8990/repos","events_url":"https://api.github.com/users/kevin8990/events{/privacy}","received_events_url":"https://api.github.com/users/kevin8990/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-07T03:30:49Z","updated_at":"2018-11-07T04:34:09Z","closed_at":"2018-11-07T04:34:09Z","author_association":"NONE","body":"testmian.lua\r\n```\r\nlocal skynet       \t= require \"skynet\"\r\n\r\nlocal Test = {}\r\n\r\nfunction Test:new(id)\r\n    local o = {}\r\n    setmetatable(o, self)\r\n    self.__index = self\r\n    o.id = id\r\n    return o\r\nend\r\n\r\nfunction Test:start_timer()\r\n\tfunction my_timer()\r\n        if self.id == 2 then\r\n            skynet.error(os.date(\"[%Y-%m-%d %H:%M:%S]: \")..\"my_timer end id:\"..self.id)\r\n        else\r\n            skynet.timeout(5 * 100, my_timer)\r\n            skynet.error(os.date(\"[%Y-%m-%d %H:%M:%S]: \")..\"my_timer again id:\"..self.id)\r\n        end\r\n    end\r\n    skynet.timeout(5 * 100, my_timer)\r\nend\r\n\r\n\r\nskynet.start(function()\r\n\tskynet.error(\"testmain start\")\r\n\r\n\tlocal t1 = Test:new(1)\r\n\tlocal t2 = Test:new(2)\r\n\tt1:start_timer()\r\n\tt2:start_timer()\r\nend)\r\n\r\n```\r\n打印出的日志是:\r\n```\r\n[:01000009] [2018-11-07 11:23:42]: my_timer again id:1\r\n[:01000009] [2018-11-07 11:23:42]: my_timer end id:2\r\n[:01000009] [2018-11-07 11:23:47]: my_timer end id:2\r\n```\r\n只有这3条\r\n不应该是:\r\n```\r\n[:01000009] [2018-11-07 11:23:42]: my_timer again id:1\r\n[:01000009] [2018-11-07 11:23:42]: my_timer end id:2\r\n[:01000009] [2018-11-07 11:23:47]: my_timer again id:1\r\n[:01000009] [2018-11-07 11:23:52]: my_timer again id:1\r\n[:01000009] [2018-11-07 11:23:57]: my_timer again id:1\r\n... ...\r\n```\r\n这样一直有的吗？\r\n"}}
{"actor":{"display_login":"cloudwu"}}