Skip to content

Commit 8e26b44

Browse files
author
brentru
committed
return the socket alocated instead
1 parent 7dde60a commit 8e26b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_fona/adafruit_fona.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ def get_socket(self):
556556
# read out the rest of the responses
557557
for _ in range(allocated_socket, FONA_MAX_SOCKETS):
558558
self._read_line(100)
559-
return sock
559+
return allocated_socket
560560

561561
def remote_ip(self, sock_num):
562562
"""Returns the IP address of the host who sent the current incoming packet.

0 commit comments

Comments
 (0)