britneywright has quit [Ping timeout: 256 seconds]
<leftylink>
CM-Punk: sure. let's look at what happens when we call this function twice, first we call timeoutHandler(m, "leftylink", "start"), next time we call timeoutHandler(m, "leftylink", "stop")
<leftylink>
first time, we create a new timer, assign it to the variable timeoutTimer, ok, everything is great
<leftylink>
second time, we create a new timer, assign it to the variable timeoutTimer, ok, and then we stop the new timer immediately
<leftylink>
well fine, but the timer created the first time is still running
<CM-Punk>
Okay, so how do I stop it
<leftylink>
call stop on the timer created the first time, not a new timer (as your code currently does)
<CM-Punk>
I don't know how to do that....that's why I'm asking you for help
<CM-Punk>
How do I call stop on an already created timer!?
<leftylink>
the same way you call any other method on any other object
<leftylink>
with a . and then a stop
<CM-Punk>
...............that's what I did
<leftylink>
then we are on the same page, right?
<dominikh>
CM-Punk: do you mind me asking what you do for a living?
<CM-Punk>
dominikh, I'm a customer care rep for a telephony company, and a pro-wrestler
<dominikh>
fun combination
<CM-Punk>
lol yeah
djbkd has quit [Quit: My people need me...]
<dominikh>
I suppose wrestling is one way to deal with the other job
<CM-Punk>
No leftylink we are not on the same page, man. You're telling me to do what I did that was incorrect.
<CM-Punk>
Yeah dominikh.
britneywright has joined #cinch
<CM-Punk>
Good outlet.
britneywright has quit [Client Quit]
<CM-Punk>
dominikh, can you explain in plain english what I'm doing wrong, and how to fix it? I'm not a complete idiot (even though I feel like one right now), just self-taught and need examples to learn and apply what I've learned.
<dominikh>
do not create a new timer every time. create a new timer only when the option is "start", store it in an instance variable, and call close on that when option is "stop"
<CM-Punk>
dominikh, thank you
<CM-Punk>
It's done
<CM-Punk>
That helped
<CM-Punk>
So, why'd you ask what I do for a living?
<dominikh>
curiosity
<CM-Punk>
Ah
<CM-Punk>
Yeah, I enjoy my night job XD
<dominikh>
I suppose it'd be better if you could wrestle the customers
<CM-Punk>
Most definitely XDD
<CM-Punk>
What do you do?
<dominikh>
I'm somewhere between student and self-employed software engineer
<CM-Punk>
That's cool.
blindsight has quit [Ping timeout: 265 seconds]
ayonix has quit [Ping timeout: 265 seconds]
ayonix has joined #cinch
blindsight has joined #cinch
blindsight is now known as Guest18709
Crazy_Atheist has quit [Ping timeout: 255 seconds]
britneywright has joined #cinch
Crazy_Atheist has joined #cinch
_whitelogger_ has joined #cinch
_whitelogger_ has quit [Excess Flood]
_whitelogger_ has joined #cinch
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has joined #cinch
irsol has quit [Ping timeout: 244 seconds]
irsol has joined #cinch
Crazy_Atheist has quit [Ping timeout: 244 seconds]
Crazy_Atheist has joined #cinch
Crazy_Atheist has quit [Ping timeout: 264 seconds]
_whitelogger_ has joined #cinch
Crazy_Atheist has joined #cinch
Crazy_Atheist has quit [Ping timeout: 240 seconds]
Crazy_Atheist has joined #cinch
djbkd has quit [Quit: My people need me...]
sarkyniin has joined #cinch
sarkyniin has quit [Remote host closed the connection]
postmodern has quit [Ping timeout: 244 seconds]
postmodern has joined #cinch
postmodern has quit [Ping timeout: 264 seconds]
postmodern has joined #cinch
postmodern has quit [Quit: Leaving]
britneywright has joined #cinch
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
britneywright has joined #cinch
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
Crazy_Atheist has quit [Ping timeout: 256 seconds]
Crazy_Atheist has joined #cinch
sarkyniin has joined #cinch
v0n has quit [Ping timeout: 245 seconds]
Crazy_Atheist is now known as Hitchens
v0n has joined #cinch
Hitchens is now known as Crazy_Atheist
djbkd has quit [Remote host closed the connection]
postmodern has joined #cinch
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has joined #cinch
Crazy_Atheist has quit [Ping timeout: 265 seconds]
britneywright has joined #cinch
Crazy_Atheist has joined #cinch
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
Crazy_Atheist has joined #cinch
sarkyniin has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]