]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cmd/nncp-daemon/main.go
Raise copyright years
[nncp.git] / src / cmd / nncp-daemon / main.go
index 710b687826fbb7b73f8a818ec1332779d9a08efa..613b9cdda0869e348883ffa05c5ecd9b40bff330 100644 (file)
@@ -1,6 +1,6 @@
 /*
 NNCP -- Node to Node copy, utilities for store-and-forward data exchange
-Copyright (C) 2016-2022 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2016-2023 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -222,7 +222,7 @@ func main() {
                        )
                }
                <-nodeIdC // call completion
-               if *autoToss {
+               if *autoToss && nodeId != nil {
                        close(autoTossFinish)
                        <-autoTossBadCode
                }
@@ -309,7 +309,7 @@ func main() {
                                )
                        }
                        <-nodeIdC // call completion
-                       if *autoToss {
+                       if *autoToss && nodeId != nil {
                                close(autoTossFinish)
                                <-autoTossBadCode
                        }