Update ClientWindow.java

Added concurrency check