More robust shutdown sequence with warning on unclean shutdown.

This commit is contained in:
Keith Winstein
2012-04-16 06:22:35 -04:00
parent 79542106c1
commit a8c3df9c80
5 changed files with 26 additions and 14 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ namespace Overlay {
bool need_countup( uint64_t ts ) const { return ts - last_word_from_server > 6500; }
void adjust_message( void );
void apply( Framebuffer &fb ) const;
void set_notification_string( const wstring s_message ) { message = s_message; message_expiration = timestamp() + 1000; }
void set_notification_string( const wstring &s_message, bool permanent = false ) { message = s_message; if ( permanent ) { message_expiration = -1; } else { message_expiration = timestamp() + 1000; } }
const wstring &get_notification_string( void ) const { return message; }
void server_heard( uint64_t s_last_word ) { last_word_from_server = s_last_word; }
uint64_t get_message_expiration( void ) const { return message_expiration; }