Browse Source

fixed err check

worker-9 4 years ago
parent
commit
19d0c3c5e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netclient/functions/checkin.go

+ 1 - 1
netclient/functions/checkin.go

@@ -21,7 +21,7 @@ import (
 )
 
 func isDeleteError(err error) bool {
-	return strings.Contains(err.Error(), models.NODE_DELETE)
+	return err != nil && strings.Contains(err.Error(), models.NODE_DELETE)
 }
 
 func checkIP(node *models.Node, servercfg config.ServerConfig, cliconf config.ClientConfig, network string) bool {