Skip to content

Commit

Permalink
fixed issue with main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ed sandberg committed May 19, 2023
1 parent ac160d2 commit 47dbe23
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ func main() {
PSKIdentityHint: []byte("Pion DTLS Client"),
CipherSuites: []dtls.CipherSuiteID{cipherSuiteID},
FlightInterval: FlightSeconds * time.Second,
ExtendedMasterSecret: dtls.DisableExtendedMasterSecret,
}
} else {
// Generate a certificate and private key to secure the connection
Expand All @@ -161,7 +160,6 @@ func main() {
config = &dtls.Config{
CipherSuites: []dtls.CipherSuiteID{cipherSuiteID},
FlightInterval: FlightSeconds * time.Second,
ExtendedMasterSecret: dtls.DisableExtendedMasterSecret,
Certificate: certificate,
PrivateKey: privateKey,
ClientAuth: clientAuth,
Expand All @@ -179,7 +177,7 @@ func main() {
// This function is called after the main method has ended
defer func() {
fmt.Println("Closing Listener")
util.Check(listener.Close(0 * time.Second))
util.Check(listener.Close())
}()

c := make(chan os.Signal, 1)
Expand Down

0 comments on commit 47dbe23

Please sign in to comment.