mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2025-01-04 19:05:25 +03:00
Only display IDE port when listening
This commit is contained in:
parent
81fefed3f3
commit
45329df3a5
@ -54,7 +54,6 @@ initIDESocketFile p = do
|
||||
putStrLn "Failed to open socket"
|
||||
exit 1
|
||||
Right sock => do
|
||||
putStrLn (show p)
|
||||
res <- bind sock (Just (Hostname "localhost")) p
|
||||
if res /= 0
|
||||
then
|
||||
@ -65,6 +64,7 @@ initIDESocketFile p = do
|
||||
then
|
||||
pure (Left ("Failed to listen on socket with error: " ++ show res))
|
||||
else do
|
||||
putStrLn (show p)
|
||||
res <- accept sock
|
||||
case res of
|
||||
Left err =>
|
||||
|
Loading…
Reference in New Issue
Block a user