mirror of https://github.com/zlatinb/muwire
sleep in a loop at the end of main method. Fixes the processes exiting after 24 days.
parent
81fa2fba1f
commit
6856a816fd
|
@ -79,7 +79,8 @@ public class HostCache {
|
|||
I2PSession.PROTO_DATAGRAM, I2PSession.PORT_ANY)
|
||||
session.connect()
|
||||
log.info("connected, going to sleep")
|
||||
Thread.sleep(Integer.MAX_VALUE)
|
||||
while(true)
|
||||
Thread.sleep(Integer.MAX_VALUE)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -54,7 +54,8 @@ class UpdateServer {
|
|||
session.addMuxedSessionListener(new Listener(update), I2PSession.PROTO_DATAGRAM, I2PSession.PORT_ANY)
|
||||
session.connect()
|
||||
log.info("Connected, going to sleep")
|
||||
Thread.sleep(Integer.MAX_VALUE)
|
||||
while(true)
|
||||
Thread.sleep(Integer.MAX_VALUE)
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue