Commit 92db52b080980a569556849796adec5ba4fe4c30

Authored by Perry Werneck
1 parent 87803e61

Disabling unlock delay feature when the ms value is 0.

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
src/core/properties.c
... ... @@ -739,7 +739,8 @@ LIB3270_EXPORT char * lib3270_get_ssl_peer_certificate_text(H3270 *hSession)
739 739 LIB3270_EXPORT int lib3270_set_unlock_delay(H3270 *hSession, unsigned int delay)
740 740 {
741 741 CHECK_SESSION_HANDLE(hSession);
742   - hSession->unlock_delay_ms = (unsigned short) delay;
  742 + hSession->unlock_delay = (delay == 0 ? 0 : 1);
  743 + hSession->unlock_delay_ms = (unsigned short) delay;
743 744 return 0;
744 745 }
745 746  
... ...