Skip to content

Commit

Permalink
fix SerialSocketServer when run without GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Mar 16, 2016
1 parent 8f9ff51 commit 60acf7d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ public Mote getMote() {
private Timer updateTimer = new Timer(UPDATE_INTERVAL, new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if (Cooja.isVisualized()) {
if (closed) {
updateTimer.stop();
return;
Expand All @@ -652,6 +653,7 @@ public void actionPerformed(ActionEvent e) {
socketToMoteLabel.setText(inBytes + " bytes");
moteToSocketLabel.setText(outBytes + " bytes");
}
}
});
}

0 comments on commit 60acf7d

Please sign in to comment.