|
|
|
@ -157,9 +157,7 @@ brokerClientThread socketIdentity ep cmd comp killMv notificationCallbacks logge |
|
|
|
(req, respVar, _) <- takeMVar respVar |
|
|
|
(req, respVar, _) <- takeMVar respVar |
|
|
|
if getRequestId req == getResponseRequestId resp |
|
|
|
if getRequestId req == getResponseRequestId resp |
|
|
|
then putMVar respVar resp |
|
|
|
then putMVar respVar resp |
|
|
|
else do |
|
|
|
else log Warning "Broker.Client" $ TL.toStrict $ [t|Request ID mismatch: %?/%?|] (getRequestId req) (getResponseRequestId resp) |
|
|
|
log Warning "Broker.Client" $ TL.toStrict $ [t|Request ID mismatch: %?/%?|] (getRequestId req) (getResponseRequestId resp) |
|
|
|
|
|
|
|
putMVar respVar (ResponseError (getRequestId req) "Request ID mismatch") |
|
|
|
|
|
|
|
handleMessage _ (IncomingNotification notif) = callNotificationCallbacks notif |
|
|
|
handleMessage _ (IncomingNotification notif) = callNotificationCallbacks notif |
|
|
|
|
|
|
|
|
|
|
|
callNotificationCallbacks notif = mapM_ (\cb -> cb notif) notificationCallbacks |
|
|
|
callNotificationCallbacks notif = mapM_ (\cb -> cb notif) notificationCallbacks |
|
|
|
|