Skip to content

Commit 41b7f06

Browse files
sago35deadprogram
authored andcommitted
rtl8720dn: add UDP close function
1 parent 749b2f6 commit 41b7f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rtl8720dn/netdriver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func (r *RTL8720DN) DisconnectSocket() error {
227227
fmt.Printf("DisconnectSocket()\r\n")
228228
}
229229
switch r.connectionType {
230-
case ConnectionTypeTCP:
230+
case ConnectionTypeTCP, ConnectionTypeUDP:
231231
_, err := r.Rpc_lwip_close(r.socket)
232232
if err != nil {
233233
return err

0 commit comments

Comments
 (0)