Ignore:
Timestamp:
02/11/14 22:16:48 (10 years ago)
Author:
jts21
Message:

Make FrameShare attempt to continue after (previously) uncaught exceptions (just means that if it can't find a file or gets a null pointer exception but is still in a working state then it'll keep going rather than having to be restarted)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/network/ImageSaver.java

    r856 r878  
    113113       
    114114        @Override
    115         public void run() {
    116                 //MessageBay.displayMessage(this.getName() + " started on port "
    117                 //              + socket.getLocalPort());
    118 
    119                 while (!_stop) {
    120                         try {
    121                                 listenForMessages();
    122        
    123                         } catch (IOException e) {
    124                                 e.printStackTrace();
    125                         }
     115        protected void closeSocket() {
     116                try {
     117                        socket.close();
     118                } catch (IOException e) {
     119                        e.printStackTrace();
    126120                }
    127                 try {
    128                 socket.close();
    129         } catch (IOException e) {
    130                 e.printStackTrace();
    131         }
    132121        }
    133 
    134122}
Note: See TracChangeset for help on using the changeset viewer.