Unverified Commit f0818dd7 authored by Philipp Winter's avatar Philipp Winter
Browse files

Add missing error check.

parent bc0ed223
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -73,7 +73,9 @@ func bootstrapTorOverBridge(bridgeLine string) error {
	}
	defer os.RemoveAll(tmpDir)

	writeConfigToTorrc(tmpFh, tmpDir, bridgeLine)
	if err = writeConfigToTorrc(tmpFh, tmpDir, bridgeLine); err != nil {
		return err
	}

	// Terminate our process after one minute.
	ctx, cancel := context.WithTimeout(context.Background(), TorBootstrapTimeout)