# How can I kill Thread-199?

**URL:** <https://forum.inductiveautomation.com/t/how-can-i-kill-thread-199/83621>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [December 29, 2023, 10:10pm UTC](https://forum.inductiveautomation.com/t/how-can-i-kill-thread-199/83621 "2023-12-29T22:10:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sherman](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@sherman](https://forum.inductiveautomation.com/u/sherman)\
**Post date:** [December 29, 2023, 10:10pm UTC](https://forum.inductiveautomation.com/t/how-can-i-kill-thread-199/83621/1 "2023-12-29T22:10:21Z")

</div>

I have a thread that will execute infinitely because I got a if `t1-t2` statement backwards 🤷. How can I kill a specific thread? I already tried rebooting the entire gateway to no avail. The only action I have available to me at Gateway / Config / Threads is "copy to clipboard".

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/b/9b89952f773217001496fedda5e62f51bdb6d01a.png)

Its still going...

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 30, 2023, 12:13am UTC](https://forum.inductiveautomation.com/t/how-can-i-kill-thread-199/83621/2 "2023-12-30T00:13:26Z")

</div>

> [@sherman](#):
>
> I already tried rebooting the entire gateway to no avail.

Is it running in the Gateway or in your Client/Designer?

---

<div class="post-metadata">

**Author:** ![sherman](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@sherman](https://forum.inductiveautomation.com/u/sherman)\
**Post date:** [December 30, 2023, 12:25am UTC](https://forum.inductiveautomation.com/t/how-can-i-kill-thread-199/83621/3 "2023-12-30T00:25:01Z")

</div>

It's running from a call to system.util.invokeAsynchronous() from inside of a button that I clicked in the designer.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 30, 2023, 12:48am UTC](https://forum.inductiveautomation.com/t/how-can-i-kill-thread-199/83621/4 "2023-12-30T00:48:46Z")

</div>

Ok, in that case there's no reason restarting the Gateway would have any effect, you would need to restart your Designer.

You could try interrupting that thread and hope something it's doing is paying attention to interrupts. You'd have to find the thread via something like [Thread (Java SE 17 & JDK 17)](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Thread.html#enumerate(java.lang.Thread%5B%5D)) or [Thread (Java SE 17 & JDK 17)](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Thread.html#getAllStackTraces()).
