make sure nil is not passed to socket-bind now that sbcl type-checks

the arguments
This commit is contained in:
Jamie Forth 2015-07-07 17:13:42 +01:00
parent 59c32ec6b5
commit 95e8643778

View file

@ -28,7 +28,9 @@
(if (not (device-active-p transmitter))
(progn
(let ((socket (make-socket (protocol transmitter))))
(socket-bind socket #(127 0 0 1) port)
(if port
(socket-bind socket #(127 0 0 1) port)
(socket-bind socket))
(socket-connect socket host-address host-port)
(socket-make-stream socket
:input nil :output t