Add more info about error heartbeat
This commit is contained in:
parent
5e9a232a05
commit
82120c920e
2 changed files with 5 additions and 5 deletions
|
@ -254,12 +254,12 @@ public class MapUtils {
|
|||
}
|
||||
|
||||
|
||||
public static int getPixelShiftX(float zoom, double long1, double long2, int tileSize){
|
||||
public static int getPixelShiftX(float zoom, double long1, double long2, double tileSize){
|
||||
return (int) ((getTileNumberX(zoom, long1) - getTileNumberX(zoom, long2)) * tileSize);
|
||||
}
|
||||
|
||||
|
||||
public static int getPixelShiftY(float zoom, double lat1, double lat2, int tileSize){
|
||||
public static int getPixelShiftY(float zoom, double lat1, double lat2, double tileSize){
|
||||
return (int) ((getTileNumberY(zoom, lat1) - getTileNumberY(zoom, lat2)) * tileSize);
|
||||
}
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ public class OsMoThread {
|
|||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Exception selecting socket", e);
|
||||
cmd("ERROR HEARTBEAT", true);
|
||||
cmd("ERROR HEARTBEAT" + e.getMessage(), true);
|
||||
e.printStackTrace();
|
||||
if (activeChannel != null && !activeChannel.isConnected()) {
|
||||
activeChannel = null;
|
||||
|
|
Loading…
Reference in a new issue