Skip to content

Commit fc95430

Browse files
authored
Merge pull request #63 from LukePrior/testing
fix
2 parents ff81f72 + 05bf292 commit fc95430

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

js/tracker.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,10 @@ function clean_refresh(text, force, history_step) {
341341
if(text == wvar.mode && !force) return false;
342342
stopAjax();
343343

344-
client.disconnect();
345-
clientConnected = false;
344+
if (clientConnected) {
345+
client.disconnect();
346+
clientConnected = false;
347+
}
346348

347349
// reset mode if, invalid mode is specified
348350
if(modeList.indexOf(text) == -1) text = (is_mobile) ? modeDefaultMobile : modeDefault;
@@ -1699,7 +1701,7 @@ function mapInfoBox_handle_path_fetch(id,vehicle) {
16991701
_new_call += " (" + data.snr.toFixed(0) + " dB)";
17001702
callsign_list.push(_new_call)
17011703
} else if(data.hasOwnProperty('rssi')) {
1702-
_new_call += " (" + data.snr.toFixed(0) + " dBm)";
1704+
_new_call += " (" + data.rssi.toFixed(0) + " dBm)";
17031705
callsign_list.push(_new_call)
17041706
} else {
17051707
callsign_list.push(_new_call)

0 commit comments

Comments
 (0)