From 75cb68dd30a4a5bb7d3a9127e512dc2978894a60 Mon Sep 17 00:00:00 2001 From: Unbewohnte Date: Tue, 14 Dec 2021 08:54:15 +0300 Subject: [PATCH] [node] fixed one-file transfer logical issue --- src/main.go | 2 +- src/node/node.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.go b/src/main.go index e38f808..3c3ac25 100644 --- a/src/main.go +++ b/src/main.go @@ -30,7 +30,7 @@ import ( ) var ( - VERSION string = "v2.1.3" + VERSION string = "v2.1.4" versionInformation string = fmt.Sprintf("ftu %s\n\nCopyright (C) 2021 Kasyanov Nikolay Alexeevich (Unbewohnte (https://unbewohnte.xyz/))\nThis program comes with ABSOLUTELY NO WARRANTY.\nThis is free software, and you are welcome to redistribute it under certain conditions; type \"ftu -l\" for details.\n", VERSION) diff --git a/src/node/node.go b/src/node/node.go index 90988b2..ae6360a 100644 --- a/src/node/node.go +++ b/src/node/node.go @@ -420,6 +420,11 @@ func (node *Node) Start() { panic(err) } + filesInfoDonePacket := protocol.Packet{ + Header: protocol.HeaderFilesInfoDone, + } + protocol.SendPacket(node.netInfo.Conn, filesInfoDonePacket) + if node.verboseOutput { fmt.Printf("\n[File] Sent filepacket for \"%s\"", fileToSend.Name) }