Ignore:
Timestamp:
Nov 12, 2007, 12:09:45 AM (17 years ago)
Author:
ecprice
Message:

Actually close the connection on disconnect, fixing #3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/vnc/vnc_javasrc/RfbProto.java

    r66 r233  
    209209
    210210    if (viewer.socketFactory == null) {
     211        System.out.println("Null socketFactory");
    211212      sock = new Socket(host, port);
    212213    } else {
     
    214215        Class factoryClass = Class.forName(viewer.socketFactory);
    215216        SocketFactory factory = (SocketFactory)factoryClass.newInstance();
     217        System.out.println("Using socketFactory " + factory);
    216218        if (viewer.inAnApplet)
    217219          sock = factory.createSocket(host, port, viewer);
     
    237239      sock.close();
    238240      closed = true;
    239       System.out.println("RFB socket closed");
     241      System.out.println("RFB socket closed " + sock);
    240242      if (rec != null) {
    241243        rec.close();
Note: See TracChangeset for help on using the changeset viewer.