fix windows not auto reconnecting
This commit is contained in:
		@ -23,7 +23,7 @@ class Connection(val address: InetAddress, val port: Int = 10796) : Closeable {
 | 
			
		||||
        val i: DataInputStream
 | 
			
		||||
        val o: DataOutputStream
 | 
			
		||||
 | 
			
		||||
        if (socket == null || !socket!!.isConnected) {
 | 
			
		||||
        if (socket == null || socket!!.isClosed || !socket!!.isConnected) {
 | 
			
		||||
            val sock = Socket()
 | 
			
		||||
            sock.soTimeout = 10_000 /*ms*/
 | 
			
		||||
            sock.keepAlive = true
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user