From b2111b6b4cfb178bfb9bfe20483cc3e43727bf9e Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sun, 22 Apr 2018 19:27:38 +0100 Subject: [PATCH] Changed Another Global Thing --- Addons/Guis/polls.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Addons/Guis/polls.lua b/Addons/Guis/polls.lua index 725b23be..2b3f9eb4 100644 --- a/Addons/Guis/polls.lua +++ b/Addons/Guis/polls.lua @@ -16,7 +16,7 @@ local function _polls(reset) return global.addons.polls end -function _._poll_end(self) +function _poll_end(self) local uuid = self.data.poll_uuid local poll = _polls().active[uuid] if not poll then return end @@ -49,7 +49,7 @@ local function _poll_data(question,answers) Server.new_thread{ data={poll_uuid=poll.uuid}, timeout=poll_time_out*60 - }:on_event('timeout',_._poll_end):open() + }:on_event('timeout',_poll_end):open() -- this time out is knowen to cause desyncs and so i have moved it to a hard coded function _polls().active[poll.uuid]=poll return poll.uuid