mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-08-09 17:25:00 +00:00
Merge pull request #1557 from sieben/patch-1
fix SerialSocketServer when run without GUI
This commit is contained in:
@@ -644,6 +644,7 @@ public class SerialSocketServer extends VisPlugin implements MotePlugin {
|
||||
private Timer updateTimer = new Timer(UPDATE_INTERVAL, new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
if (Cooja.isVisualized()) {
|
||||
if (closed) {
|
||||
updateTimer.stop();
|
||||
return;
|
||||
@@ -652,6 +653,7 @@ public class SerialSocketServer extends VisPlugin implements MotePlugin {
|
||||
socketToMoteLabel.setText(inBytes + " bytes");
|
||||
moteToSocketLabel.setText(outBytes + " bytes");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user