File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/test/java/jcs/commandStation/autopilot/state Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -201,15 +201,16 @@ private void toggleSensorDirect(SensorBean sensorBean) {
201
201
sensorBean .setActive ((sensorBean .getStatus () == 1 ));
202
202
SensorEvent sensorEvent = new SensorEvent (sensorBean );
203
203
fireFeedbackEvent (sensorEvent );
204
- synchronized (this ) {
205
- notifyAll ();
206
- }
207
204
}
208
205
209
206
private void fireFeedbackEvent (SensorEvent sensorEvent ) {
210
207
List <FeedbackController > acl = JCS .getJcsCommandStation ().getFeedbackControllers ();
211
208
for (FeedbackController fbc : acl ) {
212
209
fbc .fireSensorEventListeners (sensorEvent );
210
+
211
+ synchronized (this ) {
212
+ notifyAll ();
213
+ }
213
214
}
214
215
}
215
216
@@ -268,7 +269,6 @@ public void testBk1ToBk4() {
268
269
assertTrue (AutoPilot .isOnTrack (dhg ));
269
270
270
271
assertTrue (AutoPilot .isAutoModeActive ());
271
-
272
272
AutoPilot .startAutoMode ();
273
273
274
274
long now = System .currentTimeMillis ();
You can’t perform that action at this time.
0 commit comments