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,6 +79,7 @@ public class HostCache {
|
||||||
I2PSession.PROTO_DATAGRAM, I2PSession.PORT_ANY)
|
I2PSession.PROTO_DATAGRAM, I2PSession.PORT_ANY)
|
||||||
session.connect()
|
session.connect()
|
||||||
log.info("connected, going to sleep")
|
log.info("connected, going to sleep")
|
||||||
|
while(true)
|
||||||
Thread.sleep(Integer.MAX_VALUE)
|
Thread.sleep(Integer.MAX_VALUE)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,6 +54,7 @@ class UpdateServer {
|
||||||
session.addMuxedSessionListener(new Listener(update), I2PSession.PROTO_DATAGRAM, I2PSession.PORT_ANY)
|
session.addMuxedSessionListener(new Listener(update), I2PSession.PROTO_DATAGRAM, I2PSession.PORT_ANY)
|
||||||
session.connect()
|
session.connect()
|
||||||
log.info("Connected, going to sleep")
|
log.info("Connected, going to sleep")
|
||||||
|
while(true)
|
||||||
Thread.sleep(Integer.MAX_VALUE)
|
Thread.sleep(Integer.MAX_VALUE)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue