Ignore:
Timestamp:
May 4, 2004 5:53:11 AM (17 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
691326c
Parents:
b04512a4
git-author:
jrandom <jrandom> (05/04/04 05:53:11)
git-committer:
zzz <zzz@…> (05/04/04 05:53:11)
Message:

handle reclose, logging, more clear notification

Location:
apps/ministreaming/java/src/net/i2p/client/streaming
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocketImpl.java

    rb04512a4 r3cac1238  
    243243
    244244        public synchronized void notifyClosed() {
    245             notifyAll();
     245            I2PInputStream.this.notifyAll();
     246        }
     247       
     248        public void close() throws IOException {
     249            super.close();
     250            notifyClosed();
    246251        }
    247252
  • apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocketManager.java

    rb04512a4 r3cac1238  
    323323                return;
    324324            } else {
    325                 if ( (payload.length > 0) && (_log.shouldLog(Log.WARN)) )
    326                     _log.warn("Disconnect packet had " + payload.length + " bytes");
     325                if ( (payload.length > 0) && (_log.shouldLog(Log.ERROR)) )
     326                    _log.error("Disconnect packet had " + payload.length + " bytes");
     327                if (s != null)
     328                    s.internalClose();
    327329                return;
    328330            }
Note: See TracChangeset for help on using the changeset viewer.