More deprecation warnings fixed.
This commit is contained in:
parent
1be06ee2de
commit
3ffff9ec43
2 changed files with 10 additions and 4 deletions
|
|
@ -232,7 +232,9 @@ when isMainModule:
|
|||
# check for new new connection & handle it
|
||||
var list: seq[TSocket] = @[server.socket]
|
||||
if select(list, 10) > 0:
|
||||
var client = accept(server.socket)
|
||||
var client: TSocket
|
||||
new(client)
|
||||
accept(server.socket, client)
|
||||
try:
|
||||
acceptRequest(server, client)
|
||||
except:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue