*
*/
public class XDebugConnection {
- private int fTransactionID = 0;
+ private int fTransactionID;
private Socket fDebugSocket;
private OutputStreamWriter fDebugWriter;
private DataInputStream fDebugReader;
-
- protected boolean fInitialized = false;
- protected boolean fIsClosed = true;
-
- protected String fSessionID = "";
+ private boolean fInitialized;
+ private boolean fIsClosed;
+ private String fSessionID;
public String getSessionID() {
return fSessionID;
}
private synchronized int _sendRequest(String command, String arguments) {
+ if (fDebugSocket == null) {
+ return 0;
+ }
+
XDebugCorePlugin.log(IStatus.INFO,command+" -i "+fTransactionID+" "+arguments);
synchronized (fDebugSocket) {
try {