diff -u -r --exclude=CVS gnokii-cvs/common/gsm-statemachine.c gnokii-devel/common/gsm-statemachine.c --- gnokii-cvs/common/gsm-statemachine.c 2003-06-24 20:22:06.000000000 +0200 +++ gnokii-devel/common/gsm-statemachine.c 2003-11-17 23:52:32.000000000 +0100 @@ -250,6 +250,8 @@ if (s == GN_SM_ResponseReceived) return sm_error_get(waitfor, state); + sm_reset(state); + return GN_ERR_TIMEOUT; } @@ -312,6 +314,8 @@ if (err != GN_ERR_NONE) return err; } + sm_reset(state); + return GN_ERR_TIMEOUT; }