diff options
author | James Crayne <jim.crayne@gmail.com> | 2018-05-31 01:44:09 +0000 |
---|---|---|
committer | James Crayne <jim.crayne@gmail.com> | 2018-05-31 01:44:09 +0000 |
commit | 45e96346d7ce952f65b44b4e1e3c98287cf4b2da (patch) | |
tree | f25d2e3105a8896e9d09ec0924f8176a9108d672 /src | |
parent | 39761dea4e24eb942e4cefbc70b8c8c3d90cf571 (diff) |
uninitialized HParam fields should be Nothing not error
Diffstat (limited to 'src')
-rw-r--r-- | src/Network/Tox.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs index 9d785f67..ce9939a9 100644 --- a/src/Network/Tox.hs +++ b/src/Network/Tox.hs | |||
@@ -319,8 +319,8 @@ netCryptoWithBackoff millisecs tox myseckey theirpubkey = do | |||
319 | , hpMySecretKey = myseckey | 319 | , hpMySecretKey = myseckey |
320 | , hpCookieRemotePubkey = theirpubkey | 320 | , hpCookieRemotePubkey = theirpubkey |
321 | , hpCookieRemoteDhtkey = theirDhtKey | 321 | , hpCookieRemoteDhtkey = theirDhtKey |
322 | , hpTheirBaseNonce = error "netCrypto: Unreachable! hpTheirBaseNonce" | 322 | , hpTheirBaseNonce = Nothing |
323 | , hpTheirSessionKeyPublic = error "netCrypto: Unreachable! hpTheirSessionKeyPublic" | 323 | , hpTheirSessionKeyPublic = Nothing |
324 | } | 324 | } |
325 | freshCryptoSession (toxCryptoSessions tox) saddr hp | 325 | freshCryptoSession (toxCryptoSessions tox) saddr hp |
326 | -- myhandshake <- do | 326 | -- myhandshake <- do |