From 7c3fe35ca4c3381aeceb69581b93e3ee5fd722c5 Mon Sep 17 00:00:00 2001 From: nek0 Date: Wed, 13 Dec 2023 15:09:27 +0100 Subject: [PATCH] fix sigint handling --- configuration.yaml | 4 ++-- src-client/Client/Communication.hs | 2 +- src-client/Main.hs | 1 - src-server/Server/Communication.hs | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/configuration.yaml b/configuration.yaml index 385d470..403084f 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -1,5 +1,5 @@ setSocketPath : "/tmp/wizard.sock" -setMapRows : 20 -setMapColumns : 20 +setMapRows : 50 +setMapColumns : 50 setSpawnerProbability : 0.01 setFPS : 5 diff --git a/src-client/Client/Communication.hs b/src-client/Client/Communication.hs index ab2f8a7..45d41ab 100644 --- a/src-client/Client/Communication.hs +++ b/src-client/Client/Communication.hs @@ -81,6 +81,6 @@ terminateGameOnSigint = do sendMessage (ClientMessage clientId ClientQuit) sock close sock -- Raise SIGINT again so it does not get blocked - raiseSignal keyboardSignal + -- raiseSignal keyboardSignal ) Nothing diff --git a/src-client/Main.hs b/src-client/Main.hs index 496a70a..8b5506a 100644 --- a/src-client/Main.hs +++ b/src-client/Main.hs @@ -76,7 +76,6 @@ main = do ) initRead initState - forever $ pure () where opts = info (options <**> helper) ( fullDesc diff --git a/src-server/Server/Communication.hs b/src-server/Server/Communication.hs index c9df2cf..0a27b70 100644 --- a/src-server/Server/Communication.hs +++ b/src-server/Server/Communication.hs @@ -74,7 +74,7 @@ terminateGameOnSigint path = do close sock removeIfExists path -- Raise SIGINT again so it does not get blocked - raiseSignal sigINT + -- raiseSignal sigINT ) Nothing where