This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 256151
Collapse All | Expand All

(-)a/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/util/ConnectionManager.java (-5 / +5 lines)
Lines 320-326 Link Here
320
                }
320
                }
321
            } else {
321
            } else {
322
                if (connectionWatcher != null) {
322
                if (connectionWatcher != null) {
323
                    connectionWatcher.scheduleNow();
323
                    connectionWatcher.schedule();
324
                }
324
                }
325
                return false;
325
                return false;
326
            }
326
            }
Lines 840-847 Link Here
840
                            if (cs != null) {
840
                            if (cs != null) {
841
                                if (!cs.isConnected()) {
841
                                if (!cs.isConnected()) {
842
                                    if (!brokenConnections.contains(env)) {
842
                                    if (!brokenConnections.contains(env)) {
843
                                        fireDisconnected(env);
843
                                        brokenConnections.add(env);
844
                                        brokenConnections.add(env);
844
                                        fireDisconnected(env);
845
                                    }
845
                                    }
846
                                }
846
                                }
847
                            }
847
                            }
Lines 853-860 Link Here
853
            }
853
            }
854
        }
854
        }
855
855
856
        public void scheduleNow() {
856
        public void schedule() {
857
            myTask.schedule(0);
857
            myTask.schedule(500);
858
        }
858
        }
859
859
860
        public void scheduleIfNeed() {
860
        public void scheduleIfNeed() {
Lines 886-892 Link Here
886
            synchronized (channelsSupportLock) {
886
            synchronized (channelsSupportLock) {
887
                brokenConnections.remove(env);
887
                brokenConnections.remove(env);
888
            }
888
            }
889
            scheduleNow();
889
            schedule();
890
        }
890
        }
891
    }
891
    }
892
}
892
}

Return to bug 256151