Skip to content

Commit

Permalink
FIX: setSocketDescriptor failing on Python 3.10
Browse files Browse the repository at this point in the history
Convert `sip.voidptr` to `int` before emitting to socket handler.
  • Loading branch information
desty2k committed Feb 20, 2022
1 parent 63e8923 commit acebf6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QtPyNetwork/server/BaseServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, parent=None):

@Slot(int)
def incomingConnection(self, socket_descriptor):
self.connection.emit(socket_descriptor)
self.connection.emit(int(socket_descriptor))


class QBaseServer(QObject):
Expand Down

0 comments on commit acebf6e

Please sign in to comment.