On 12/7/15, 3:12 AM, Bryan Buchanan wrote:
Found out what the problem was - I'm using Thrift for RPC, and was
initialising the underlying Thrift socket with a connection timeout of zero
(i.e. infinite). When there was a network disconnection, it appeared the FX
UI thread was getting starved and the app freezes. All good now, and FX is
fine.
Glad to hear you found your issue.

Sounds like a good place to use a worker thread to get that work off the UI 
thread. In fact, I happen to have this handy link to documentation on it :-)

https://docs.oracle.com/javase/8/javafx/interoperability-tutorial/concurrency.htm

Dave

--
David Hill<david.h...@oracle.com>
Java Embedded Development

"A man's feet should be planted in his country, but his eyes should survey the 
world."
-- George Santayana (1863 - 1952)

Reply via email to